Module Name:    src
Committed By:   maya
Date:           Wed Dec 20 04:46:19 UTC 2017

Modified Files:
        src/sys/compat/common: Makefile

Log Message:
Pass LDFLAGS to ld.

Without this, mips64-ld thinks we want to link our n64 objects with the
default ABI, n32.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/compat/common/Makefile

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

Modified files:

Index: src/sys/compat/common/Makefile
diff -u src/sys/compat/common/Makefile:1.62 src/sys/compat/common/Makefile:1.63
--- src/sys/compat/common/Makefile:1.62	Sat Dec 16 10:15:12 2017
+++ src/sys/compat/common/Makefile	Wed Dec 20 04:46:19 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.62 2017/12/16 10:15:12 maxv Exp $
+#	$NetBSD: Makefile,v 1.63 2017/12/20 04:46:19 maya Exp $
 
 LIB=		compat
 NOPIC=		# defined
@@ -26,12 +26,12 @@ libinstall::
 lib${LIB}.o:: ${OBJS:O}
 	@echo building standard ${LIB} library
 	@rm -f lib${LIB}.o
-	@${LD} -r -o lib${LIB}.o `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}`
+	@${LD} -r -o lib${LIB}.o ${LDFLAGS} `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}`
 
 lib${LIB}.po:: ${POBJS:O}
 	@echo building profiled ${LIB} library
 	@rm -f lib${LIB}.po
-	@${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}`
+	@${LD} -r -o lib${LIB}.po ${LDFLAGS} `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}`
 
 showsources: ${SRCS}
 	@echo ${.ALLSRC}

Reply via email to