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.
+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.
-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)
.PRECIOUS: Makefile
+override CXX += $(CXX_DIALECT)
+
override CC := $(CXX)
override CFLAGS := $(CXXFLAGS)