aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorHIGUCHI Daisuke (VDR dai) <debian@vdr.jp>2011-11-24 03:40:47 +0000
committerHIGUCHI Daisuke (VDR dai) <debian@vdr.jp>2011-11-24 03:40:47 +0000
commitf7218d492169d5d863427dc8f12fceecab68e31c (patch)
tree40a9760bb8056ae77c2d9163e2292eee1f4fa75e /debian/rules
parentMark w3m Multi-Arch: foreign. (diff)
downloadw3m-f7218d492169d5d863427dc8f12fceecab68e31c.tar.gz
w3m-f7218d492169d5d863427dc8f12fceecab68e31c.zip
enable hardening options
http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules5
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index fde7f32..64e81c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,9 @@
#export DH_VERBOSE=1
+CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
+LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
+
ifeq ($(DEB_BUILD_GNU_SYSTEM),linux-gnu)
DEVS=x11,fb+s
else
@@ -25,7 +28,7 @@ build-arch: build-stamp
build-stamp:
dh_testdir
cd $(builddir) && dh_autotools-dev_updateconfig
- cd $(builddir) && ./configure $(confargs)
+ cd $(builddir) && CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure $(confargs)
cd $(builddir) && LC_ALL=C $(MAKE) OPTS="-Wall -g -DDEBIAN"
cd $(builddir)/po && LC_ALL=C $(MAKE) update-gmo
touch build-stamp