| delorie.com/archives/browse.cgi | search |
| Xref: | news-dnh.mv.net comp.os.msdos.djgpp:372 |
| Newsgroups: | comp.os.msdos.djgpp |
| Path: | news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!news.alpha.net!news.mathworks.com!news.kei.com!travelers.mail.cornell.edu!cornellcs!rochester!rocksanne!gnu!not-for-mail |
| From: | leisner AT sdsp DOT mc DOT xerox DOT com (Marty Leisner 25733) |
| Subject: | Re: Build MSDOS apps under Linux? |
| Lines: | 55 |
| Sender: | news AT news DOT wrc DOT xerox DOT com |
| Reply-To: | leisner AT sdsp DOT mc DOT xerox DOT com |
| Organization: | xerox |
| References: | <D9vD5n DOT 1tF AT jade DOT mv DOT net> <3recd7$5o2 AT harbinger DOT cc DOT monash DOT edu DOT au> |
| Date: | Tue, 13 Jun 1995 17:27:42 GMT |
| To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
Russell Edwards (rtedw1 AT mdw013 DOT cc DOT monash DOT edu DOT au) wrote:
: >> The Cygnus folks have included the go32 target in their patch for gcc that
: >> helps gcc better support embedded systems targets.
: >>
: >> ftp://ftp.cygnus.com/pub/embedded/crossgcc-2.6.3.patch.gz
: >>
: >> I happily use a gcc-2.6.3 on my BSD/OS box that was built for
: >>
: >> --target=i386-go32
: >>
: >> to compile code that ends up running on DOS. The only "trick" was to acquire
: >> the lib and include files from the djgpp distribution, and put them under
: >> /usr/gnu/i386-go32 (I use /usr/gnu as my --prefix) so that they would be what
: >> gets used in the compiles and links.
:
I was using i386-go32 at the beginning -- I found i386-coff works
fine...
I'm running this script now (I have a distribution in /dos/gnu/dj)
#! /bin/bash
# $Id$
#base=/dos/gnu/950520
#base=/dos/gnu/950524
base=/dos/gnu/dj
export LIBRARY_PATH=$base/lib
include=$base/include
#export LDEMULATION=i386go32
export LDEMULATION=i386coff
export GCC_EXEC_PREFIX=/u/leisner/bin/coff-
export COMPILER_PATH=/usr/i486-linux/bin/
#exec gcc -nostdinc -idirafter /dos/gnu/include $*
exec gcc -b i486-linuxaout -idirafter $include -nostdinc ${1+"$@"}
I had to build a coff as in bintutils (2.5.2) and called it
coff-as and put in on my path...
I also had the do a little changing to djgpp.lnk in V2alpha
(changed it from i386-go32 to i386-coff)
And be sure to "unixify" all the files...(if you use unzip, use
the -a option which will "guess" what has to be converted...)
--
marty
leisner AT sdsp DOT mc DOT xerox DOT com
Member of the League for Programming Freedom (see http://www.lpf.org/)
"I just know I'm a better manager when I have Joe DiMaggio in center field"
Casey Stengel
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |