Control: tags -1 patch

A fix for the free42-nologo FTBFS is attached.

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

Description: Fix build with gcc 6 by using -std=gnu++98
 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.
 .
 CXXFLAGS are not passed from debian/rules to the package build,
 as a workaround this patches the Makefile.
Author: Adrian Bunk <[email protected]>
Bug-Debian: https://bugs.debian.org/811760

--- free42-nologo-1.4.77.orig/gtk/Makefile
+++ free42-nologo-1.4.77/gtk/Makefile
@@ -17,6 +17,7 @@
 
 CXXFLAGS := -MMD -Wall -Wno-parentheses -Wno-write-strings -g -I/usr/X11R6/include -fno-exceptions -fno-rtti $(shell pkg-config --cflags gtk+-2.0) -DVERSION="\"$(shell cat ../VERSION)\""
 CXXFLAGS += -fPIC
+CXXFLAGS += -std=gnu++98
 LDFLAGS += -L/usr/X11R6/lib
 LIBS := -lXmu -lX11 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0
 

Reply via email to