Mail Archives: djgpp/1997/05/17/12:17:49
> 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/
- Raw text -