Enable hardening build flags via dpkg-buildflags
Axel Beckert
12 years ago
0 | 0 |
dillo (3.0.2-2) UNRELEASED; urgency=low
|
1 | 1 |
|
2 | 2 |
* Compile with -fPIC to avoid FTBFS on amd64 (Closes: #664949)
|
|
3 |
* Enable hardening build flags via dpkg-buildflags
|
3 | 4 |
|
4 | 5 |
-- Axel Beckert <abe@debian.org> Sat, 24 Mar 2012 21:15:35 +0100
|
5 | 6 |
|
10 | 10 |
CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
|
11 | 11 |
endif
|
12 | 12 |
|
13 | |
CFLAGS = -Wall -g
|
14 | |
CPPFLAGS=-fPIC
|
15 | |
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
16 | |
CFLAGS += -O0
|
17 | |
else
|
18 | |
CFLAGS += -O2
|
19 | |
endif
|
|
13 |
DEB_CFLAGS_MAINT_APPEND=-Wall
|
|
14 |
DEB_CPPFLAGS_MAINT_APPEND=-fPIC
|
|
15 |
DPKG_EXPORT_BUILDFLAGS = 1
|
|
16 |
include /usr/share/dpkg/buildflags.mk
|
20 | 17 |
|
21 | 18 |
configure: config.status
|
22 | 19 |
config.h.in.backup:
|
|
29 | 26 |
--sysconfdir=/etc \
|
30 | 27 |
--enable-ipv6 \
|
31 | 28 |
--enable-ssl \
|
32 | |
CFLAGS="$(CFLAGS)" \
|
33 | |
CPPFLAGS="$(CPPFLAGS)" \
|
34 | 29 |
|
35 | 30 |
build: build-arch build-indep
|
36 | 31 |
build-arch: build-stamp
|