diff options
author | bde <bde@FreeBSD.org> | 1998-12-27 17:25:27 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-12-27 17:25:27 +0000 |
commit | edceb2d6b39e794b1b80d1f8de7cc63d52408a8a (patch) | |
tree | 7f1a6cbae64e3807da97e567fbb4bb84bb08d189 /gnu/lib/libstdc++ | |
parent | 8214ce6ac3a4ee52f740c53bfcbdd2d5e05b0a1e (diff) | |
download | FreeBSD-src-edceb2d6b39e794b1b80d1f8de7cc63d52408a8a.zip FreeBSD-src-edceb2d6b39e794b1b80d1f8de7cc63d52408a8a.tar.gz |
Avoid using `ld -O' (as in bsd.lib.mk). `ld -O' seems to have caused only
non-problems for elf -- `ld -elf -O foo.tmp -x -r foo' apparently puts
the result in a.out so it has essentially no effect.
Diffstat (limited to 'gnu/lib/libstdc++')
-rw-r--r-- | gnu/lib/libstdc++/Makefile | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/gnu/lib/libstdc++/Makefile b/gnu/lib/libstdc++/Makefile index 891dfa3..10c3198 100644 --- a/gnu/lib/libstdc++/Makefile +++ b/gnu/lib/libstdc++/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.9 1998/03/20 15:10:59 bde Exp $ +# $Id: Makefile,v 1.10 1998/10/11 04:56:03 peter Exp $ # GPPDIR= ${.CURDIR}/../../../contrib/libg++ @@ -93,32 +93,40 @@ beforeinstall: # ======== typeinfoi.o, stdexcepti.o ======== .for file in typeinfoi stdexcepti +CLEANFILES+= ${file}.o.tmp ${file}.po.tmp ${file}.so.tmp ${file}.o: ${file}.cc ${CXX} ${CXXFLAGS} -frtti -c ${DIR}/${file}.cc -o ${.TARGET} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} ${file}.so: ${file}.cc ${CXX} ${PICFLAG} -DPIC ${CXXFLAGS} -frtti -c ${DIR}/${file}.cc -o ${.TARGET} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} ${file}.po: ${file}.cc ${CXX} -p ${CXXFLAGS} -frtti -c ${DIR}/${file}.cc -o ${.TARGET} - @${LD} -O ${.TARGET} -X -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} .endfor # ======== exceptioni.o ======== .for file in exceptioni +CLEANFILES+= ${file}.o.tmp ${file}.po.tmp ${file}.so.tmp ${file}.o: ${file}.cc ${CXX} ${CXXFLAGS} -O0 -frtti -fhandle-exceptions -c ${DIR}/${file}.cc -o ${.TARGET} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} ${file}.so: ${file}.cc ${CXX} ${PICFLAG} -DPIC ${CXXFLAGS} -O0 -frtti -fhandle-exceptions -c ${DIR}/${file}.cc -o ${.TARGET} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} ${file}.po: ${file}.cc ${CXX} -p ${CXXFLAGS} -O0 -frtti -fhandle-exceptions -c ${DIR}/${file}.cc -o ${.TARGET} - @${LD} -O ${.TARGET} -X -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} .endfor # ======== cstrmain.o ======== |