GNU Binutils with patches for OS216
Revision | 4019e26332281c74b6816557f8c9a05e7cdb8ede (tree) |
---|---|
Zeit | 2020-01-17 03:13:54 |
Autor | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
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 <palves@redhat.com>
* Makefile.am: Append CXX_DIALECT to CXX.
* Makefile.in: Regenerate.
@@ -24,6 +24,8 @@ AM_CPPFLAGS = -I$(srcdir)/config.h -I$(srcdir)/../include -I$(srcdir)/../gdb \ | ||
24 | 24 | -I../gnulib/import -I$(srcdir)/../gnulib/import \ |
25 | 25 | -I.. -I$(srcdir)/.. $(INCINTL) -I../bfd -I$(srcdir)/../bfd |
26 | 26 | |
27 | +override CXX += $(CXX_DIALECT) | |
28 | + | |
27 | 29 | override CC := $(CXX) |
28 | 30 | override CFLAGS := $(CXXFLAGS) |
29 | 31 |
@@ -688,6 +688,8 @@ uninstall-am: | ||
688 | 688 | .PRECIOUS: Makefile |
689 | 689 | |
690 | 690 | |
691 | +override CXX += $(CXX_DIALECT) | |
692 | + | |
691 | 693 | override CC := $(CXX) |
692 | 694 | override CFLAGS := $(CXXFLAGS) |
693 | 695 |