[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 01/01: Fix C++ standard library compilation issue with old GCC
noreply at xfce.org
noreply at xfce.org
Thu Jul 20 22:25:59 CEST 2017
This is an automated email from the git hooks/post-receive script.
o m e g a p h i l p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-hardware-monitor-plugin.
commit 98b1bedd98903d69f108f70620f675b651c0d89e
Author: OmegaPhil <OmegaPhil at startmail.com>
Date: Thu Jul 20 21:23:21 2017 +0100
Fix C++ standard library compilation issue with old GCC
Library dependencies are now causing breakage for GCC 5 and below
as they now require C++11, which with old GCC versions requires
explicit declaration as a GCC flag
Reported by Martin DiViaio
Fixes https://bugzilla.xfce.org/show_bug.cgi?id=13717
---
src/Makefile.am | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 9650750..f6fd604 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -52,7 +52,13 @@ libhardwaremonitor_la_LIBADD = \
$(DEPS_LIBS) $(SENSORS_LIBS)
-AM_CXXFLAGS = $(DEPS_CFLAGS) $(SENSORS_CFLAGS)
+# Recently (>=2017) dependent libraries seem to require building with
+# the C++11 standard (see https://bugzilla.xfce.org/show_bug.cgi?id=13717)
+# - this results in errors with GCC 5 and below when building with
+# default configuration - 4.9.2 is bundled with Debian Jessie (2015),
+# presumably when 2020 comes around I can consider addition of the std
+# flag deprecated
+AM_CXXFLAGS = $(DEPS_CFLAGS) $(SENSORS_CFLAGS) --std=c++11
glade_DATA = ui.glade
gladedir = $(datadir)/$(PACKAGE_NAME)/glade
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list