On 02-Mar-99 Richard Wackerbarth wrote: > > >remove cc from /usr/src/gnu/usr.bin/Makefile SUBDIR list > > >remove libstdc++ and libobjc from /usr/src/gnu/lib/Makefile SUBDIR list > Although this approach works, IMHO, the more appropriate approach > would be to use "${CC}" rather than "cc" in ALL the makefiles and then > define "CC=/usr/bin/egcc"
I did this for a make buildworld, ie make CC=egcc "CFLAGS=-nostdinc -I/usr/include" buildworld Which worked, but blew up doing ld :-/ [ ... ] printf '#include "SYS.h"\nRSYSCALL(clock_gettime)\n' > clock_gettime.S egcc -I/usr/include -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP -I/usr/obj/usr/src/tmp/usr/include -I/usr/src/lib/libc/i386 -c clock_gettime.S -o clock_gettime.o printf '#include "SYS.h"\nRSYSCALL(clock_settime)\n' > clock_settime.S /usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld/ldlang.c:1215: `FNM_FILE_NAME' undeclared (first use this function)/usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld/ldlang.c:1215: (Each undeclared identifier is reported only once /usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld/ldlang.c:1215: for each function it appears in.)*** Error code 1Stop. *** Error code 1 Stop. etc I haven't looked at it any further though. --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message