Module Name:    src
Committed By:   matt
Date:           Sat Sep  5 03:40:41 UTC 2009

Modified Files:
        src/rescue [matt-nb5-mips64]: Makefile

Log Message:
Switch from ${LD} -r to ${CC} ${LDFLAGS} -nostdlib -Wl,-r so that ${CC} can
pass additional options to ld


To generate a diff of this commit:
cvs rdiff -u -r1.21.10.1 -r1.21.10.1.4.1 src/rescue/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/rescue/Makefile
diff -u src/rescue/Makefile:1.21.10.1 src/rescue/Makefile:1.21.10.1.4.1
--- src/rescue/Makefile:1.21.10.1	Fri Jan 16 22:21:30 2009
+++ src/rescue/Makefile	Sat Sep  5 03:40:41 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.21.10.1 2009/01/16 22:21:30 bouyer Exp $
+#	$NetBSD: Makefile,v 1.21.10.1.4.1 2009/09/05 03:40:41 matt Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -52,7 +52,7 @@
 LIBOVERRIDE=	liboverride.o
 ${LIBOVERRIDE}: ${OVERRIDEOBJS}
 	${_MKTARGET_LINK}
-	${LD} -r -o $@ ${OVERRIDEOBJS}
+	${CC} ${LDFLAGS} -nostdlib -Wl,-r -o $@ ${OVERRIDEOBJS}
 
 CLEANFILES+=	${OVERRIDEOBJS} ${LIBOVERRIDE}
 

Reply via email to