• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision4019e26332281c74b6816557f8c9a05e7cdb8ede (tree)
Zeit2020-01-17 03:13:54
AutorPedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

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.

Ändern Zusammenfassung

Diff

--- a/gdbsupport/Makefile.am
+++ b/gdbsupport/Makefile.am
@@ -24,6 +24,8 @@ AM_CPPFLAGS = -I$(srcdir)/config.h -I$(srcdir)/../include -I$(srcdir)/../gdb \
2424 -I../gnulib/import -I$(srcdir)/../gnulib/import \
2525 -I.. -I$(srcdir)/.. $(INCINTL) -I../bfd -I$(srcdir)/../bfd
2626
27+override CXX += $(CXX_DIALECT)
28+
2729 override CC := $(CXX)
2830 override CFLAGS := $(CXXFLAGS)
2931
--- a/gdbsupport/Makefile.in
+++ b/gdbsupport/Makefile.in
@@ -688,6 +688,8 @@ uninstall-am:
688688 .PRECIOUS: Makefile
689689
690690
691+override CXX += $(CXX_DIALECT)
692+
691693 override CC := $(CXX)
692694 override CFLAGS := $(CXXFLAGS)
693695