Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/binutils pass -L in LDFLAGS. clang complains about it...



details:   https://anonhg.NetBSD.org/src/rev/5a8a869d3cd2
branches:  trunk
changeset: 348227:5a8a869d3cd2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Oct 11 03:57:00 2016 +0000

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

diffstat:

 tools/binutils/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r f52d7472ac83 -r 5a8a869d3cd2 tools/binutils/Makefile
--- a/tools/binutils/Makefile   Tue Oct 11 03:09:37 2016 +0000
+++ b/tools/binutils/Makefile   Tue Oct 11 03:57:00 2016 +0000
@@ -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 @@
 
 .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 @@
                        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 \



Home | Main Index | Thread Index | Old Index