Module Name:    src
Committed By:   mrg
Date:           Tue Oct 11 03:57:00 UTC 2016

Modified Files:
        src/tools/binutils: Makefile

Log Message:
pass -L in LDFLAGS.  clang complains about it to stderr, and configure
checks for headers fail if there are unexpected stderr.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/tools/binutils/Makefile

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

Modified files:

Index: src/tools/binutils/Makefile
diff -u src/tools/binutils/Makefile:1.25 src/tools/binutils/Makefile:1.26
--- src/tools/binutils/Makefile:1.25	Tue Jan 26 17:47:57 2016
+++ src/tools/binutils/Makefile	Tue Oct 11 03:57:00 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.25 2016/01/26 17:47:57 christos Exp $
+#	$NetBSD: Makefile,v 1.26 2016/10/11 03:57:00 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -34,7 +34,8 @@ INSTALL_TARGET+=install-gprof
 
 .include "${.CURDIR}/../Makefile.gnuhost"
 
-CCADDFLAGS=	-I${DESTDIR}/usr/include -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/
+CCADDFLAGS=	-I${DESTDIR}/usr/include -B${DESTDIR}/usr/lib/
+LDADDFLAGS=	-L${DESTDIR}/lib -L${DESTDIR}/usr/lib
 
 # Force avoiding possibly non-executable install-sh.
 CONFIGURE_ENV+= ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d"
@@ -55,7 +56,8 @@ native-binutils: .native/.configure_done
 			CC=${CC:Q}' '${CCADDFLAGS:Q} \
 			CXX=${CXX:Q}' '${CCADDFLAGS:Q} \
 			CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \
-			CFLAGS= CPPFLAGS= CXXFLAGS= LDFLAGS= \
+			CFLAGS= CPPFLAGS= CXXFLAGS= \
+			LDFLAGS=${LDADDFLAGS:Q} \
 			MSGFMT=${TOOLDIR}/bin/${_TOOL_PREFIX}msgfmt \
 			XGETTEXT=${TOOLDIR}/bin/${_TOOL_PREFIX}xgettext \
 			LIBS=-lintl \

Reply via email to