From 40f49e4e46624bc012324a50753336f7f9c238e7 Mon Sep 17 00:00:00 2001 From: Andrey Drobyshev Date: Mon, 8 Oct 2018 15:41:37 +0300 Subject: [PATCH] ld/testing: clear compiler & linker flags when running testsuite. Passing CLFAGS, CXXFLAGS, LDFLAGS used previously on build stage cause failures when running "make check". It's safer to clear them. Change-Id: If2bba2baca0f99c3931af2a55739ff6a087f2b0f Signed-off-by: Andrey Drobyshev --- ld/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ld/Makefile.in b/ld/Makefile.in index 7c78198..afca102 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -242,6 +242,7 @@ ETAGS = etags CTAGS = ctags DEJATOOL = $(PACKAGE) RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir +MAKECHECKENV = CFLAGS='' CXXFLAGS='' LDFLAGS='' DIST_SUBDIRS = $(SUBDIRS) transform = s/^ld-new$$/$(installed_linker)/;@program_transform_name@ ACLOCAL = @ACLOCAL@ @@ -1939,7 +1940,7 @@ distclean-DEJAGNU: check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU check: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) check-recursive + $(MAKECHECKENV) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(INFO_DEPS) $(LTLIBRARIES) $(PROGRAMS) $(MANS) \ config.h installdirs: installdirs-recursive -- 2.7.4