This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] PR gold/20310: Pass down LDFLAGS from top level for "make check"
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Cc: Cary Coutant <ccoutant at gmail dot com>
- Date: Wed, 29 Jun 2016 09:13:14 -0700
- Subject: [PATCH] PR gold/20310: Pass down LDFLAGS from top level for "make check"
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Pass down "-static-libstdc++ -static-libgcc" in LDFLAGS from the top
level Makefile. Otherwise, LDFLAGS will be empty for "make check",
which may lead to
FAIL: dynamic_list.sh
FAIL: plugin_layout_with_alignment.sh
on Fedora 24. OK for trunk?
H.J.
---
PR gold/20310
* Makefile.am (AM_MAKEFLAGS): New.
* Makefile.in: Regenerated.
---
gold/Makefile.am | 8 ++++++++
gold/Makefile.in | 13 +++++++++++--
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/gold/Makefile.am b/gold/Makefile.am
index b6ec9be..e805429 100644
--- a/gold/Makefile.am
+++ b/gold/Makefile.am
@@ -375,3 +375,11 @@ bootstrap-test-treehash-chunksize: ld1 ld4
endif
endif
+
+# Pass down "-static-libstdc++ -static-libgcc" in LDFLAGS from the top
+# level Makefile. Otherwise, LDFLAGS will be empty for "make check",
+# which may lead to
+# FAIL: dynamic_list.sh
+# FAIL: plugin_layout_with_alignment.sh
+AM_MAKEFLAGS = \
+ "LDFLAGS=@LDFLAGS@"
diff --git a/gold/Makefile.in b/gold/Makefile.in
index ec67448..fb1682f 100644
--- a/gold/Makefile.in
+++ b/gold/Makefile.in
@@ -87,8 +87,8 @@ subdir = .
DIST_COMMON = NEWS README ChangeLog $(srcdir)/Makefile.in \
$(srcdir)/Makefile.am $(top_srcdir)/configure \
$(am__configure_deps) $(srcdir)/config.in \
- $(srcdir)/../mkinstalldirs $(top_srcdir)/po/Make-in \
- ftruncate.c pread.c mremap.c ffsll.c yyscript.h yyscript.c \
+ $(srcdir)/../mkinstalldirs $(top_srcdir)/po/Make-in ffsll.c \
+ ftruncate.c pread.c mremap.c yyscript.h yyscript.c \
$(srcdir)/../depcomp $(srcdir)/../ylwrap
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
@@ -687,6 +687,15 @@ POTFILES = $(CCFILES) $(HFILES) $(TARGETSOURCES)
@GCC_TRUE@@NATIVE_LINKER_TRUE@ -Wl,--build-id-chunk-size-for-treehash=12346 \
@GCC_TRUE@@NATIVE_LINKER_TRUE@ -Wl,--build-id-min-file-size-for-treehash=0 \
@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(am__append_4)
+
+# Pass down "-static-libstdc++ -static-libgcc" in LDFLAGS from the top
+# level Makefile. Otherwise, LDFLAGS will be empty for "make check",
+# which may lead to
+# FAIL: dynamic_list.sh
+# FAIL: plugin_layout_with_alignment.sh
+AM_MAKEFLAGS = \
+ "LDFLAGS=@LDFLAGS@"
+
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
--
2.7.4