From owner-freebsd-current Mon Mar 1 22:53:10 1999 Delivered-To: freebsd-current@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id 2A9001549B for ; Mon, 1 Mar 1999 22:53:05 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from lot.gsoft.com.au (doconnor@lot.gsoft.com.au [203.38.152.106]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id RAA19881; Tue, 2 Mar 1999 17:22:01 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 02 Mar 1999 17:22:01 +1030 (CST) From: "Daniel O'Connor" To: Richard Wackerbarth Subject: Re: gcc Cc: current@FreeBSD.ORG, obrien@NUXI.com, John Polstra , dyson@iquest.net, "Jordan K. Hubbard" , Manfred Antar Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message