diff options
author | Pedro Alves <palves@redhat.com> | 2020-01-15 21:55:29 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-01-16 18:13:54 +0000 |
commit | 4019e26332281c74b6816557f8c9a05e7cdb8ede (patch) | |
tree | d77282f2f249ffdb17cc5c857fbab6aeefc7afee | |
parent | b77c4ae6a7d76705ff97bb812c7c002c5a4b1465 (diff) | |
download | binutils-gdb-users/palves/config.h.tar.gz |
Fix gdbsupport build on compilers that don't default to C++11 or aboveusers/palves/config.h
gdbsupport fails to build with compilers that don't default to C++11
or above. gdbsupport's configure.ac is already using
AX_CXX_COMPILE_STDCXX, which sets CXX_DIALECT to the -std=gnu++11
switch if necessary, but the problem is that nowhere are we using
CXX_DIALECT. This fixes it.
gdbsupport/ChangeLog:
yyyy-mm-dd Pedro Alves <palves@redhat.com>
* Makefile.am: Append CXX_DIALECT to CXX.
* Makefile.in: Regenerate.
-rw-r--r-- | gdbsupport/Makefile.am | 2 | ||||
-rw-r--r-- | gdbsupport/Makefile.in | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gdbsupport/Makefile.am b/gdbsupport/Makefile.am index 3180ddebd4d..0d1ae8a9ff7 100644 --- a/gdbsupport/Makefile.am +++ b/gdbsupport/Makefile.am @@ -24,6 +24,8 @@ AM_CPPFLAGS = -I$(srcdir)/config.h -I$(srcdir)/../include -I$(srcdir)/../gdb \ -I../gnulib/import -I$(srcdir)/../gnulib/import \ -I.. -I$(srcdir)/.. $(INCINTL) -I../bfd -I$(srcdir)/../bfd +override CXX += $(CXX_DIALECT) + override CC := $(CXX) override CFLAGS := $(CXXFLAGS) diff --git a/gdbsupport/Makefile.in b/gdbsupport/Makefile.in index f9931e1f102..a199dfa356b 100644 --- a/gdbsupport/Makefile.in +++ b/gdbsupport/Makefile.in @@ -688,6 +688,8 @@ uninstall-am: .PRECIOUS: Makefile +override CXX += $(CXX_DIALECT) + override CC := $(CXX) override CFLAGS := $(CXXFLAGS) |