ld/testing: clear compiler & linker flags when running testsuite.
authorAndrey Drobyshev <a.drobyshev@partner.samsung.com>
Mon, 8 Oct 2018 12:41:37 +0000 (15:41 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Mon, 16 Dec 2019 12:28:16 +0000 (15:28 +0300)
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 <a.drobyshev@partner.samsung.com>
ld/Makefile.in

index 9898392..cc30a07 100644 (file)
@@ -358,6 +358,7 @@ CTAGS = ctags
 CSCOPE = cscope
 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@
@@ -1892,7 +1893,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