Bug#831125: Fix for the polygraph FTBFS
Control: tags 831125 +patch
What broke the build is that gcc 6 changed the default C++ standard
from C++98 to C++14.
Note that this just changed the default, when told to process C++98 code
gcc 6 does not differ in any significant way from gcc 5.
Not all valid C++98 code is also valid C++11 and C++14 code.
Making the code compatible with C++14 would be the best possible
solution, but as a workaround it is possible to fix the build with
the following change to tell gcc that this is C++98 code:
--- debian/rules.old 2016-10-07 17:43:01.000000000 +0000
+++ debian/rules 2016-10-07 17:43:34.000000000 +0000
@@ -2,6 +2,7 @@
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+export DEB_CXXFLAGS_MAINT_APPEND = -std=gnu++98
%:
dh $@ --with autoreconf --parallel
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Reply to: