Fwd: on purpose or forgotten ? hardcoded compiler in
basesystem-makefiles
Chris Rees
utisoft at gmail.com
Mon Mar 5 15:55:30 UTC 2012
On 5 Mar 2012 14:36, "Dr. A. Haakh" <bugReporter at haakh.de> wrote:
>
> As suggested my M. Seaman, i repost my message here.
>
> -------- Original Message --------
> Subject: on purpose or forgotten ? hardcoded compiler in
basesystem-makefiles
> Date: Mon, 05 Mar 2012 11:12:42 +0100
> From: Dr. A. Haakh <bugReporter at Haakh.de>
> To: freebsd-questions at freebsd.org
>
>
>
> a quick search revealed following usages:
>
> FreeBSD abaton.Haakh.de 9.0-STABLE FreeBSD 9.0-STABLE #0: Wed Feb 29
> 13:49:36 CET 2012 toor at abaton.Haakh.de:/usr/obj/usr/src/sys/ABATON
i386
>
> ah at abaton:~$ find /usr/src/ -name Makefile\* -exec egrep
> '^[[:blank:]]+[gc+]{2,3}[[:blank:]]+..' {} \; -print
> cc -D__dead2="" -D__unused="" -Darc4random=random
> -D__FBSDID="static const char *id=" -DDEFSHELLNAME=\"sh\" -I. -c *.c
> cc *.o -o pmake
> /usr/src/usr.bin/make/Makefile.dist
> gcc -M $(CFLAGS) $(SRC)>> Makefile.tmp
> /usr/src/crypto/openssl/demos/engines/cluster_labs/Makefile
> gcc -M $(CFLAGS) $(SRC)>> Makefile.tmp
> /usr/src/crypto/openssl/demos/engines/zencod/Makefile
> gcc -M $(CFLAGS) $(SRC)>> Makefile.tmp
> /usr/src/crypto/openssl/demos/engines/ibmca/Makefile
> cc -I../../include divtest.c -o divtest ../../libcrypto.a
> cc -g -I../../include bnbug.c -o bnbug ../../libcrypto.a
> gcc -I../../include -g2 -ggdb -o exptest exptest.c ../../libcrypto.a
> gcc -I.. -g div.c ../../libcrypto.a
> /usr/src/crypto/openssl/crypto/bn/Makefile
> cc -g -I../../include -c test.c
> cc -g -I../../include -o test test.o -L../.. -lcrypto
> cc -g -I../../include -c pk.c
> cc -g -I../../include -o pk pk.o -L../.. -lcrypto
> /usr/src/crypto/openssl/crypto/asn1/Makefile
> gcc -o ${.TARGET} ${_f} -lrt
> /usr/src/tools/test/dtrace/Makefile
> c++ -o $@ $< -lpthread
> /usr/src/tools/regression/pthread/unwind/Makefile
> gcc -c -o elftls.o ${.CURDIR}/elftls.S
> gcc -c -o tls-test.o ${.CURDIR}/tls-test-lib.c
> gcc $(CFLAGS) -rdynamic -o ttls3 ${.CURDIR}/tls-test.c
> /usr/src/tools/regression/tls/ttls3/Makefile
> gcc -Wall -o accf_data_attach accf_data_attach.c
> /usr/src/tools/regression/sockets/accf_data_attach/Makefile
> gcc $(LDFLAGS) $(DLL_LN_OPTS) ./lib/$*$(DLL_TAG).lib \
> gcc $(LDFLAGS) $(DLL_LN_OPTS) ./lib/$*$(DLL_TAG).lib \
> /usr/src/contrib/ncurses/Makefile.os2
> g++ -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $< $(OUTPUT_OPTION)
> g++ -o $@ paranoia.o real.o $(LIBIBERTY)
> /usr/src/contrib/gcc/Makefile.in
> gcc -o asyncwatch asyncwatch.c ${CFLAGS}
> gcc -o devinfo devinfo.c ${CFLAGS}
> gcc -o device_list device_list.c ${CFLAGS}
> gcc -o rc_pingpong rc_pingpong.c pingpong.c ${CFLAGS}
> gcc -o srq_pingpong srq_pingpong.c pingpong.c ${CFLAGS}
> gcc -o uc_pingpong uc_pingpong.c pingpong.c ${CFLAGS}
> gcc -o ud_pingpong ud_pingpong.c pingpong.c ${CFLAGS}
> /usr/src/contrib/ofed/libibverbs/examples/Makefile
> cc -E $$i |\
> /usr/src/contrib/libreadline/examples/rlfe/Makefile.in
> cc -o test ${.CURDIR}/test.c -lrpcsvc
> /usr/src/usr.sbin/rpc.lockd/Makefile
> cc -o test test.c -lrpcsvc
> /usr/src/usr.sbin/rpc.statd/Makefile
> gcc -g -DSPARC_XXX ${MUL} -o ${.TARGET}
> gcc -g -DSPARC_XXX ${DIVREM} -o ${.TARGET}
> /usr/src/lib/libc/quad/TESTS/Makefile
> cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a
> /usr/src/lib/libdisk/Makefile
> gcc -g3 msgring.lex.c msgring.yacc.c -o msgring
> /usr/src/sys/mips/rmi/Makefile.msgring
>
> ah at abaton:~$ find /usr/src/ -name Makefile\* -exec egrep
> '^[[:blank:]]+cpp[[:blank:]]+..' {} \; -print
> cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_ovl.S spu_ovl.s
> /usr/src/contrib/binutils/ld/Makefile.in
> cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_ovl.S spu_ovl.s
> /usr/src/contrib/binutils/ld/Makefile.am
>
>
Anything in contrib/ should usually get fixed upstream.
Chris
More information about the freebsd-hackers
mailing list