[freeimage] 12/18: Use modern hardening settings.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Nov 11 19:19:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/experimental
in repository freeimage.

commit 1186a01d449f5cbb323953e3d032f94d323dff0b
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Nov 4 14:35:22 2015 +0000

    Use modern hardening settings.
---
 debian/rules | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 1b66bd5..49a5289 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,14 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-CFLAGS := $(shell dpkg-buildflags --get CFLAGS) -fPIC
-CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) -fPIC
-LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
+# Hardening options.
+export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -fPIC
+export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic -fPIC
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+# Export build flags.
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
 
 # Environment information.
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/freeimage.git



More information about the debian-science-commits mailing list