[SCM] rtmpdump/master: Compile with hardened compilation and linking flags

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Tue Apr 8 01:25:11 UTC 2014


The following commit has been merged in the master branch:
commit 74cf22a1dd6ccef5d31e6dbbe5622516c6735a3b
Author: Reinhard Tartler <siretart at tauware.de>
Date:   Mon Apr 7 21:12:41 2014 -0400

    Compile with hardened compilation and linking flags
    
    As found by lintian. Also, this makes very much sense for this package
    as it is typically used with untrusted input over the internet.

diff --git a/debian/rules b/debian/rules
index 6a58919..741cc34 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,11 @@
 #export DH_VERBOSE=1
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-MAKEVARS=prefix=/usr CRYPTO=GNUTLS libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
+CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
+LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+MAKEVARS=prefix=/usr CRYPTO=GNUTLS libdir=/usr/lib/$(DEB_HOST_MULTIARCH) XCFLAGS="$(CFLAGS) $(CPPFLAGS)" XLDFLAGS="$(LDFLAGS)"
+
 
 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

-- 
rtmpdump packaging



More information about the pkg-multimedia-commits mailing list