]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix gdbsupport build on compilers that don't default to C++11 or above users/palves/config.h
authorPedro Alves <palves@redhat.com>
Wed, 15 Jan 2020 21:55:29 +0000 (21:55 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 16 Jan 2020 18:13:54 +0000 (18:13 +0000)
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.

gdbsupport/Makefile.am
gdbsupport/Makefile.in

index 3180ddebd4dac07675bed3b769030be5be9d2d8f..0d1ae8a9ff7ec15ee8e949c6fcc941074dd8c55b 100644 (file)
@@ -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)
 
index f9931e1f10210d0423d867aa0be4696bdf0ef1f1..a199dfa356be775d6bfc441681202eb78e20cf19 100644 (file)
@@ -688,6 +688,8 @@ uninstall-am:
 .PRECIOUS: Makefile
 
 
+override CXX += $(CXX_DIALECT)
+
 override CC := $(CXX)
 override CFLAGS := $(CXXFLAGS)