This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PR gold/20310: Pass down LDFLAGS from top level for "make check"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]