[SCM] mplayer/master: enable hardened buildflags
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sat Jan 19 14:49:38 UTC 2013
The following commit has been merged in the master branch:
commit e7e0368ea43ce4ac8ec12ef3df08d0df1f14d04f
Author: Reinhard Tartler <siretart at tauware.de>
Date: Sat Jan 19 15:26:30 2013 +0100
enable hardened buildflags
Kudos to Moritz Muehlenhoff <jmm at debian.org> for the patch.
Closes: #658040
diff --git a/debian/rules b/debian/rules
index bbea99e..24ed16e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,6 +27,9 @@ DEB_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed -r 's/[^:]+://; s/-[^-]+$$//')
SVN_VERSION := $(shell echo $(UPSTREAM_VERSION) | sed -nr 's/^[0-9.:-~]+\+svn([0-9]+)$$/\1/p')
+CFLAGS = `dpkg-buildflags --get CFLAGS`
+CFLAGS += `dpkg-buildflags --get CPPFLAGS`
+LDFLAGS = `dpkg-buildflags --get LDFLAGS`
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
@@ -49,6 +52,8 @@ CONFIGURE_FLAGS = \
--disable-libdvdcss-internal \
--disable-libmpeg2-internal \
--disable-ffmpeg_a \
+ --extra-cflags="${CFLAGS}" \
+ --extra-ldflags="${LDFLAGS}" \
$(archconf)
ifeq ($(DEB_HOST_ARCH),i386)
--
mplayer packaging
More information about the pkg-multimedia-commits
mailing list