public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Fix gdbsupport build on compilers that don't default to C++11 or above
@ 2020-01-17 18:28 gdb-buildbot
  2020-01-17 18:30 ` *** COMPILATION FAILED *** Failures on Fedora-i686, branch master *** BREAKAGE *** gdb-buildbot
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gdb-buildbot @ 2020-01-17 18:28 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 67b10306d19bd16ec9f3ca73b14aa82c789436e1 ***

commit 67b10306d19bd16ec9f3ca73b14aa82c789436e1
Author:     Pedro Alves <palves@redhat.com>
AuthorDate: Wed Jan 15 21:55:29 2020 +0000
Commit:     Pedro Alves <palves@redhat.com>
CommitDate: Fri Jan 17 15:19:42 2020 +0000

    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:
    2020-01-17   Pedro Alves  <palves@redhat.com>
    
            * Makefile.am: Append CXX_DIALECT to CXX.
            * Makefile.in: Regenerate.

diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog
index e7a902760f..3583e5bd34 100644
--- a/gdbsupport/ChangeLog
+++ b/gdbsupport/ChangeLog
@@ -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.
diff --git a/gdbsupport/Makefile.am b/gdbsupport/Makefile.am
index 1a001a0081..4b8a604ce5 100644
--- a/gdbsupport/Makefile.am
+++ b/gdbsupport/Makefile.am
@@ -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)
 
diff --git a/gdbsupport/Makefile.in b/gdbsupport/Makefile.in
index 5bbab1c310..31065af244 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)
 


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-01-17 19:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-17 18:28 [binutils-gdb] Fix gdbsupport build on compilers that don't default to C++11 or above gdb-buildbot
2020-01-17 18:30 ` *** COMPILATION FAILED *** Failures on Fedora-i686, branch master *** BREAKAGE *** gdb-buildbot
2020-01-17 19:02 ` *** COMPILATION FAILED *** Failures on Fedora-x86_64-m64, " gdb-buildbot
2020-01-17 19:10 ` *** COMPILATION FAILED *** Failures on Fedora-x86_64-native-extended-gdbserver-m64, " gdb-buildbot
2020-01-17 19:17 ` Failures on Fedora-x86_64-m32, branch master gdb-buildbot
2020-01-17 19:19 ` *** COMPILATION FAILED *** Failures on Fedora-x86_64-w64-mingw32, branch master *** BREAKAGE *** gdb-buildbot
2020-01-17 19:19 ` *** COMPILATION FAILED *** Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot
2020-01-17 19:44 ` Failures on Fedora-x86_64-native-gdbserver-m32, branch master gdb-buildbot
2020-01-17 20:07 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).