Message-Id: <199705171613.MAA23138@keeper.albany.net> Comments: Authenticated sender is From: "Jim Lefavour" Organization: No Way Out To: Andrew Crabtree , djgpp AT delorie DOT com Date: Sat, 17 May 1997 12:11:42 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Help porting software (linux to dos) Reply-to: jamesl AT albany DOT net In-reply-to: <199705171553.AA076174404@typhoon.rose.hp.com> References: <199705170419 DOT AAA21893 AT keeper DOT albany DOT net>; from "Jim Lefavour" at May 17, 97 12:17 (midnight) Precedence: bulk > There's a couple things going on here. Presumably the -lc_alias is > being added to the link line because the makefile tells it to. [snip] not the problem here tho... > link to fail with undefined symbols or something similar. Now, if the > makefile is not the problem (very slim chance here), you could See below: > also just bypass gcc and invoke ld directly. I'll try this, tho I'd like to find out what causes this for future reference... > > I suspect that you will need to find a dj version of libc_alias.a though. This may be true, though I don't begin to know where to get it :-( My makefile is rather simple: thus - # makefile.dos for cfdisk... OPT= -O3 -m486 # -fomit-frame-pointer LDFLAGS= -s CFLAGS= $(OPT) -I. $(XTRACFLAGS) # ncurses.h is sometimes installed in /usr/include, and sometimes in # /usr/include/ncurses (-I/usr/include/ncurses). Sometimes it's # called curses.h (NCH=0) and sometimes it's called ncurses.h (NCH=1) # XTRACFLAGS=-I/usr/include/ncurses -DNCH=1 XTRACFLAGS=-DNCH=0 LIBCURSES=-lcurso fdisk: fdisk.o fdisklabel.o llseek.o genhd.o cfdisk: cfdisk.o llseek.o genhd.o $(CC) $(LDFLAGS) $^ -o $@ $(LIBCURSES) -lm That's it... Any ideas are welcome, and I apreciate the response :-) Jim jamesl AT albany DOT net http://www.albany.net/~jamesl/ Please also visit: http://www.geocities.com/SiliconValley/Pines/9244/