Module Name: src
Committed By: mrg
Date: Fri Oct 14 23:27:00 UTC 2016
Modified Files:
src/external/gpl3/binutils/usr.bin/ld: Makefile
Log Message:
go back to only installing ldscripts for ports that need them (multi-abi)
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/external/gpl3/binutils/usr.bin/ld/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/binutils/usr.bin/ld/Makefile
diff -u src/external/gpl3/binutils/usr.bin/ld/Makefile:1.26 src/external/gpl3/binutils/usr.bin/ld/Makefile:1.27
--- src/external/gpl3/binutils/usr.bin/ld/Makefile:1.26 Fri Oct 14 15:58:34 2016
+++ src/external/gpl3/binutils/usr.bin/ld/Makefile Fri Oct 14 23:27:00 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2016/10/14 15:58:34 christos Exp $
+# $NetBSD: Makefile,v 1.27 2016/10/14 23:27:00 mrg Exp $
CPPFLAGS+= -I${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH} \
-I${DIST}/ld \
@@ -92,12 +92,18 @@ e${f}.c: ${DIST}/ld/genscripts.sh ${.CUR
${G_EMUL} ${LIBDIR} yes ${G_enable_initfini_array} \
${f} "${G_target_alias}"
-. for e in x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw
-. if exists(ldscripts/${f}.${e})
+. if ${BINUTILS_MACHINE_ARCH} == "x86_64" || \
+ ${BINUTILS_MACHINE_ARCH} == "sparc64" || \
+ ${BINUTILS_MACHINE_ARCH} == "aarch64" || \
+ !empty(BINUTILS_MACHINE_ARCH:Mearm*) || \
+ !empty(BINUTILS_MACHINE_ARCH:Marm*) || \
+ !empty(BINUTILS_MACHINE_ARCH:Mmips64*)
+. for e in x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw
+. if exists(ldscripts/${f}.${e})
FILES+= ${f}.${e}
-. endif
-. endfor
-
+. endif
+. endfor
+. endif
.endfor
.include <bsd.prog.mk>