Bug#812058: Fix for the gargoyle-free FTBFS

Adrian Bunk bunk at stusta.de
Wed Nov 2 16:14:03 UTC 2016


Control: tags -1 patch

What broke the build is that gcc 6 changed the default C++ standard
from C++98 to C++14.

Not all valid C++98 code is also valid C++11 and C++14 code.

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.

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
this change to tell gcc that this is C++98 code.

I am aware that this change results in a (harmless) compiler warning on 
every compiled C file. The build system of the package uses the same 
CFLAGS for both C and C++ code.


--- debian/rules.old	2016-11-02 15:42:31.000000000 +0000
+++ debian/rules	2016-11-02 15:44:50.000000000 +0000
@@ -15,6 +15,7 @@
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
+export DEB_CFLAGS_MAINT_APPEND = -std=gnu++98
 
 # Tell 'jam' to statically link private libraries; the convenience
 # library is pretty small and it's much simpler in jam than trying to


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



More information about the Pkg-games-devel mailing list