[SCM] liblivemedia/master: First attempt to introduce support for hardened builds.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Thu Nov 22 12:41:58 UTC 2012
The following commit has been merged in the master branch:
commit 8f357155f2562921b18e8a87d31591083838753d
Author: Alessio Treglia <alessio at debian.org>
Date: Thu Nov 22 12:41:28 2012 +0000
First attempt to introduce support for hardened builds.
diff --git a/debian/rules b/debian/rules
index 3e27d5c..b9314d1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,12 +3,15 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-CFLAGS = -Wall -g
+CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
+CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+
+CFLAGS += -Wall
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
-else
- CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
--
liblivemedia packaging
More information about the pkg-multimedia-commits
mailing list