Enable full hardening build flags
Chris Boot
10 years ago
0 | 0 |
squeezelite (1.3.1-2) UNRELEASED; urgency=low
|
1 | 1 |
|
|
2 |
* Enable full hardening build flags:
|
|
3 |
- Add DEB_BUILD_MAINT_OPTIONS := hardening=+all
|
|
4 |
- Strip -fPIC from Makefile
|
2 | 5 |
|
3 | 6 |
-- Chris Boot <debian@bootc.net> Sun, 08 Dec 2013 09:42:57 +0000
|
4 | 7 |
|
3 | 3 |
used when building C source.
|
4 | 4 |
Author: Chris Boot <debian@bootc.net>
|
5 | 5 |
Forwarded: not-needed
|
6 | |
Last-Update: 2013-11-24
|
|
6 |
Last-Update: 2013-12-08
|
7 | 7 |
|
8 | 8 |
--- a/Makefile
|
9 | 9 |
+++ b/Makefile
|
|
11 | 11 |
# Cross compile support - create a Makefile which defines these three variables and then includes this Makefile...
|
12 | 12 |
-CFLAGS ?= -Wall -fPIC -O2 $(OPTS)
|
13 | 13 |
-LDFLAGS ?= -lasound -lpthread -lm -lrt
|
14 | |
+CFLAGS += -Wall -fPIC $(OPTS)
|
|
14 |
+CFLAGS += -Wall $(OPTS)
|
15 | 15 |
+LDFLAGS += -lasound -lpthread -lm -lrt
|
16 | 16 |
EXECUTABLE ?= squeezelite
|
17 | 17 |
|
7 | 7 |
# libraries
|
8 | 8 |
export OPTS=-DFFMPEG -DRESAMPLE -DVISEXPORT -DLINKALL
|
9 | 9 |
|
|
10 |
# Enable all hardening build flags
|
|
11 |
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
|
|
12 |
|
10 | 13 |
%:
|
11 | 14 |
dh $@
|