aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.in
diff options
context:
space:
mode:
authorVlad Zakharov <vzakhar@synopsys.com>2016-09-26 16:36:08 +0100
committerNick Clifton <nickc@redhat.com>2016-09-26 16:36:08 +0100
commitc5da193232ea0452f714dffee0d417d965590476 (patch)
treec2867b21c7ceff96ce501c83c1e99025a55d5ba3 /ld/Makefile.in
parent384f7503344b1d07561f801ced7493858cde6164 (diff)
downloadgdb-c5da193232ea0452f714dffee0d417d965590476.zip
gdb-c5da193232ea0452f714dffee0d417d965590476.tar.gz
gdb-c5da193232ea0452f714dffee0d417d965590476.tar.bz2
When building target binaries, ensure that the warning flags selected for the command line match the target compiler.
bfd * warning.m4 (AC_EGREP_CPP_FOR_BUILD): Introduce macro to verify CC_FOR_BUILD compiler. (AM_BINUTILS_WARNINGS): Introduce ac_cpp_for_build variable and add CC_FOR_BUILD compiler checks. * Makefile.in: Regenerate. * configure: Likewise. * doc/Makefile.in: Likewise. binutils * Makefile.am: Replace AM_CLFAGS with AM_CFLAGS_FOR_BUILD when building with CC_FOR_BUILD compiler. * Makefile.in: Regenerate. * configure: Likewise. * doc/Makefile.in: Likewise. gas * Makefile.in: Regenerate. * configure: Likewise. * doc/Makefile.in: Likewise. gold * Makefile.in: Regenerate. * configure: Likewise. * testsuite/Makefile.in: Likewise. gprof * Makefile.in: Regenerate. * configure: Likewise. ld * Makefile.in: Regenerate. * configure: Likewise. opcodes * Makefile.in: Regenerate. * configure: Likewise.
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r--ld/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 48b7ba7..3511e5f 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -354,6 +354,7 @@ TESTBFDLIB = @TESTBFDLIB@
USE_NLS = @USE_NLS@
VERSION = @VERSION@
WARN_CFLAGS = @WARN_CFLAGS@
+WARN_CFLAGS_FOR_BUILD = @WARN_CFLAGS_FOR_BUILD@
WARN_WRITE_STRINGS = @WARN_WRITE_STRINGS@
XGETTEXT = @XGETTEXT@
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
@@ -508,7 +509,7 @@ CXX_FOR_TARGET = ` \
fi`
-# Strip out sanitization options as they require special host libraries.
+# Strip out sanitization options as we want to test building binaries without any extra paraphernalia
CFLAGS_FOR_TARGET = `echo $(CFLAGS) | sed -e 's/-fsanitize=address//g' -e 's/-fsanitize=undefined//g'`
CXXFLAGS_FOR_TARGET = `echo $(CXXFLAGS) | sed -e 's/-fsanitize=address//g' -e 's/-fsanitize=undefined//g'`
info_TEXINFOS = ld.texinfo