diff --git a/debian/changelog b/debian/changelog index 8ef7e8e..619d63e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,8 @@ squeezelite (1.3.1-2) UNRELEASED; urgency=low + * Enable full hardening build flags: + - Add DEB_BUILD_MAINT_OPTIONS := hardening=+all + - Strip -fPIC from Makefile -- Chris Boot Sun, 08 Dec 2013 09:42:57 +0000 diff --git a/debian/patches/Makefile-tweaks.patch b/debian/patches/Makefile-tweaks.patch index 024336e..615df49 100644 --- a/debian/patches/Makefile-tweaks.patch +++ b/debian/patches/Makefile-tweaks.patch @@ -4,7 +4,7 @@ used when building C source. Author: Chris Boot Forwarded: not-needed -Last-Update: 2013-11-24 +Last-Update: 2013-12-08 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ # Cross compile support - create a Makefile which defines these three variables and then includes this Makefile... -CFLAGS ?= -Wall -fPIC -O2 $(OPTS) -LDFLAGS ?= -lasound -lpthread -lm -lrt -+CFLAGS += -Wall -fPIC $(OPTS) ++CFLAGS += -Wall $(OPTS) +LDFLAGS += -lasound -lpthread -lm -lrt EXECUTABLE ?= squeezelite diff --git a/debian/rules b/debian/rules index 943ed77..f1d1538 100755 --- a/debian/rules +++ b/debian/rules @@ -8,5 +8,8 @@ # libraries export OPTS=-DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL +# Enable all hardening build flags +export DEB_BUILD_MAINT_OPTIONS := hardening=+all + %: dh $@