www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/19/02:15:21

Date: Mon, 19 Apr 1999 10:12:58 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Gilleptic <yeahright AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Compiling for Linux?
In-Reply-To: <371A6CEC.6C18A7A5@hotmail.com>
Message-ID: <Pine.SUN.3.91.990419101227.15835J-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 19 Apr 1999, Gilleptic wrote:

> I've heard it's possible to compile Linux executables with DJGPP - if
> it's true, how do I do it, and what do I need?

DJGPP's header files and libraries are highly compatible with Unix
systems in general, including Linux.  In addition, Linux uses for
development the same GNU tools used by DJGPP--the GCC compiler, the
GNU Make, etc.  So the development environment is also highly
compatible.

Therefore, if the program doesn't depend on X Window system (of which
there's no DJGPP port currently) for its graphical user interface, and
doesn't call non-standard library functions which aren't in the DJGPP
library, you can simply compile the program with DJGPP.

The way to compile it depends on how the original program is compiled
on Linux.  Usually, there's a Makefile and you are supposed to type
"make [Enter]"; this is exactly what you do with DJGPP as well.  Some
Makefile's will require to install Bash and auxiliary tools to work.
The following packages, all available from the DJGPP sites in the
v2gnu directory, should be enough for any Unix Makefile to work:

      bsh1147b.zip (Bash)
      mak377b.zip (Make)
      fil316b.zip (Fileutils)
      txt122b.zip (Textutils)
      shl112b.zip (Sh-utils)
      sed302b.zip (Sed)
      grep22b.zip (Grep)
      gwk303b.zip (Gawk)
      dif271b.zip (Diffutils)
      find41b.zip (Findutils)
      txi312b.zip (Texinfo)

> (Sorry if this is in the docs - I don't have local copies, and I can't
> seem to find the answer on the net :(

Which documents lack local copies?  Every DJGPP document has an Info
version that should come with the package.  You read these Info
documents with an Info browser.  One such browser comes with the
Texinfo package (see above).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019