From 4019e26332281c74b6816557f8c9a05e7cdb8ede Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 15 Jan 2020 21:55:29 +0000 Subject: 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: yyyy-mm-dd Pedro Alves * Makefile.am: Append CXX_DIALECT to CXX. * Makefile.in: Regenerate. --- gdbsupport/Makefile.am | 2 ++ gdbsupport/Makefile.in | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gdbsupport/Makefile.am b/gdbsupport/Makefile.am index 3180dde..0d1ae8a 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 f9931e1..a199dfa 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) -- cgit v1.1