]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix gdbsupport build on compilers that don't default to C++11 or above
authorPedro Alves <palves@redhat.com>
Wed, 15 Jan 2020 21:55:29 +0000 (21:55 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 17 Jan 2020 15:19:42 +0000 (15:19 +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:
2020-01-17   Pedro Alves  <palves@redhat.com>

* Makefile.am: Append CXX_DIALECT to CXX.
* Makefile.in: Regenerate.

gdbsupport/ChangeLog
gdbsupport/Makefile.am
gdbsupport/Makefile.in

index e7a902760f7c71957f1737db7435596cc0793d63..3583e5bd34707706fc7f8a9347019be5b67d2771 100644 (file)
@@ -1,3 +1,8 @@
+2020-01-17   Pedro Alves  <palves@redhat.com>
+
+       * Makefile.am: Append CXX_DIALECT to CXX.
+       * Makefile.in: Regenerate.
+
 2020-01-17  Pedro Alves  <palves@redhat.com>
 
        * configure.ac: Generate config.h instead of support-config.h.
index 1a001a008178f48ca29dec9c065d94f5fc0d17aa..4b8a604ce52e2f0a9c5a0e95556cf609d6418bb3 100644 (file)
@@ -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)
 
index 5bbab1c310e3b99b5b53091c7b3635e27b264d46..31065af2440a1dc3beb35137b62131116e0c9132 100644 (file)
@@ -688,6 +688,8 @@ uninstall-am:
 .PRECIOUS: Makefile
 
 
+override CXX += $(CXX_DIALECT)
+
 override CC := $(CXX)
 override CFLAGS := $(CXXFLAGS)