diff options
author | Pedro Alves <palves@redhat.com> | 2020-01-15 21:55:29 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-01-17 15:19:42 +0000 |
commit | 67b10306d19bd16ec9f3ca73b14aa82c789436e1 (patch) | |
tree | e5627ab3c76d7a0afeb226516a8bdf3f89debeda /gdbsupport/Makefile.am | |
parent | 3684d331fd35f49e4022ac6906dc879552af0442 (diff) | |
download | gdb-67b10306d19bd16ec9f3ca73b14aa82c789436e1.zip gdb-67b10306d19bd16ec9f3ca73b14aa82c789436e1.tar.gz gdb-67b10306d19bd16ec9f3ca73b14aa82c789436e1.tar.bz2 |
Fix gdbsupport build on compilers that don't default to C++11 or above
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:
2020-01-17 Pedro Alves <palves@redhat.com>
* Makefile.am: Append CXX_DIALECT to CXX.
* Makefile.in: Regenerate.
Diffstat (limited to 'gdbsupport/Makefile.am')
-rw-r--r-- | gdbsupport/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdbsupport/Makefile.am b/gdbsupport/Makefile.am index 1a001a0..4b8a604 100644 --- a/gdbsupport/Makefile.am +++ b/gdbsupport/Makefile.am @@ -24,6 +24,8 @@ AM_CPPFLAGS = -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) |