tags 778039 + patch
thanks
Here's a fix for the GCC 5 build issue. I added
"-Wno-error=format-security" to the GNUmakefile. The package
successfully builds and links using GCC 5 with this change.
It looks like GCC 5 / gobjc 5 sets "-Werror=format-security" by default.
Please see the "Environment variables" section at
https://wiki.debian.org/Hardening#Environment_variables for more info.
--
Josh Gadeken
Linux for HP Helion OpenStack, Hewlett-Packard
Description: Fix GCC 5 build error.
Add -Wno-error=format-security to ADDITIONAL_CFLAGS and ADDITIONAL_OBJCFLAGS.
Author: Josh Gadeken <josh.gade...@hp.com>
Bug-Debian: https://bugs.debian.org/778058
--- oolite-1.77.1.orig/GNUmakefile
+++ oolite-1.77.1/GNUmakefile
@@ -33,8 +33,8 @@ ifeq ($(GNUSTEP_HOST_OS),mingw32)
else
ADDITIONAL_INCLUDE_DIRS = -Isrc/SDL -Isrc/Core -Isrc/BSDCompat -Isrc/Core/Scripting -Isrc/Core/Materials -Isrc/Core/Entities -Isrc/Core/OXPVerifier -Isrc/Core/Debug -Isrc/Core/Tables
ADDITIONAL_OBJC_LIBS = -lgnustep-base -lstdc++
- ADDITIONAL_CFLAGS = -Wall -DLINUX -DNEED_STRLCPY
- ADDITIONAL_OBJCFLAGS = -Wall -std=c99 -DLOADSAVEGUI -DLINUX -DXP_UNIX -Wno-import
+ ADDITIONAL_CFLAGS = -Wall -DLINUX -DNEED_STRLCPY -Wno-error=format-security
+ ADDITIONAL_OBJCFLAGS = -Wall -std=c99 -DLOADSAVEGUI -DLINUX -DXP_UNIX -Wno-import -Wno-error=format-security
oolite_LIB_DIRS += -L/usr/X11R6/lib/
ifeq ($(use_deps),yes)
oolite_LIB_DIRS += -Ldeps/Linux-deps/$(HOST_ARCH)/lib_linker