tags 778025 + patch
thanks

Here are fixes for the gcc-5 build issue with netrek-client-cow.

The attached patch adds the followings,

- -std=gn89 to CFLAGS in debian/rules, a work around to instruct gcc-5
to use gnu-89 semantics for inline function declarations

- -P to CPPFLAGS when checking for GMP 2, a work around for gcc-5
preprocessor started to emit line markers to properly distinguish
whether a macro token comes from a system header

So the package is able to build without any error.


Thanks,
Mak.
--- configure.orig	2015-08-03 20:14:07.090731161 +0000
+++ configure	2015-08-03 20:05:06.000000000 +0000
@@ -7182,6 +7182,8 @@
 # Checking for GMP 2
 SAVEINCS="$INCS"
 INCS="$INCS $XINCLUDES"
+SAVECPPFLAGS="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS -P"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -7202,6 +7204,7 @@
 fi
 rm -f conftest*
 
+CPPFLAGS="$SAVECPPFLAGS"
 INCS="$SAVEINCS"
 
 if test "$MPLIB" = nope; then
--- debian/rules.orig	2015-08-03 20:14:22.430731479 +0000
+++ debian/rules	2015-08-03 20:04:34.854719318 +0000
@@ -7,6 +7,7 @@
 CFLAGS:=	$(shell dpkg-buildflags --get CFLAGS)
 CPPFLAGS:=	$(shell dpkg-buildflags --get CPPFLAGS)
 LDFLAGS:=	$(shell dpkg-buildflags --get LDFLAGS)
+CFLAGS:=        $(CFLAGS) -std=gnu89
 
 ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
 EXTRACFLAGS+=	-Werror

Reply via email to