diff options
author | peter <peter@FreeBSD.org> | 1998-10-06 11:28:29 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-10-06 11:28:29 +0000 |
commit | 518d6b5e04f992234d1960033938c796e8023ecb (patch) | |
tree | 40bcf940cd41e79730f74a47819034f733442be6 | |
parent | 576997d4f6355687aeb26cd35fb4221bdf7ab4ad (diff) | |
download | FreeBSD-src-518d6b5e04f992234d1960033938c796e8023ecb.zip FreeBSD-src-518d6b5e04f992234d1960033938c796e8023ecb.tar.gz |
Replace use of non-standard ld -O with a ld -o / mv combination as used
elsewhere in the tree. Binutils doesn't support the -O hack^H^H^H^H
extension. (actually, it ignores it for option compatability with some
other OS).
-rw-r--r-- | gnu/lib/libgcc/Makefile | 20 | ||||
-rw-r--r-- | gnu/usr.bin/cc/libgcc/Makefile | 20 |
2 files changed, 26 insertions, 14 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile index 98f3dd4..cbae22a 100644 --- a/gnu/lib/libgcc/Makefile +++ b/gnu/lib/libgcc/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.16 1998/03/23 12:23:13 bde Exp $ +# $Id: Makefile,v 1.17 1998/07/08 00:45:50 bde Exp $ # LIB= gcc @@ -67,30 +67,36 @@ ${OBJS}: ${COMMONHDRS} ${LIB1OBJS}: libgcc1.c ${CC} -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} ${LIB2OBJS}: libgcc2.c ${XCC} -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} .if !defined(NOPIC) ${LIB1SOBJS}: libgcc1.c ${CC} -c -fpic ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} ${LIB2SOBJS}: libgcc2.c ${XCC} -c -fpic ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} .endif .if !defined(NOPROFILE) ${LIB1POBJS}: libgcc1.c ${CC} -c -p ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -X -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} ${LIB2POBJS}: libgcc2.c ${XCC} -c -p ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -X -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} .endif .include <bsd.lib.mk> diff --git a/gnu/usr.bin/cc/libgcc/Makefile b/gnu/usr.bin/cc/libgcc/Makefile index 98f3dd4..cbae22a 100644 --- a/gnu/usr.bin/cc/libgcc/Makefile +++ b/gnu/usr.bin/cc/libgcc/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.16 1998/03/23 12:23:13 bde Exp $ +# $Id: Makefile,v 1.17 1998/07/08 00:45:50 bde Exp $ # LIB= gcc @@ -67,30 +67,36 @@ ${OBJS}: ${COMMONHDRS} ${LIB1OBJS}: libgcc1.c ${CC} -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} ${LIB2OBJS}: libgcc2.c ${XCC} -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} .if !defined(NOPIC) ${LIB1SOBJS}: libgcc1.c ${CC} -c -fpic ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} ${LIB2SOBJS}: libgcc2.c ${XCC} -c -fpic ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} .endif .if !defined(NOPROFILE) ${LIB1POBJS}: libgcc1.c ${CC} -c -p ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -X -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} ${LIB2POBJS}: libgcc2.c ${XCC} -c -p ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c} - @${LD} -O ${.TARGET} -X -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} .endif .include <bsd.lib.mk> |