[bibutils] 08/10: debian/rules: pass hardening CFLAGS

David Bremner bremner at debian.org
Sun Aug 11 12:36:38 UTC 2013


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

bremner pushed a commit to annotated tag debian/5.0-1
in repository bibutils.

commit 5b5f6acc25d4d30c4f0db6f443a60d04b5f417bc
Author: David Bremner <bremner at debian.org>
Date:   Sat Aug 10 21:04:03 2013 +0200

    debian/rules: pass hardening CFLAGS
    
    CFLAGSIN is used by the various {lib,bin}/Makefile.{dynamic,static}
    
    we throw CPPFLAGS in with CFLAGS to avoid patching upstream Makefiles.
---
 debian/rules |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 89eb36b..c195f1c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,9 @@ DESTDIR=${CURDIR}/debian/tmp/
 INSTALLDIR=${DESTDIR}/usr/bin
 LIBINSTALLDIR=${DESTDIR}/usr/lib
 
+CFLAGSIN=$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
+export CFLAGSIN
+
 %:
 	dh $@
 
@@ -28,7 +31,7 @@ override_dh_auto_configure:
 	@echo building bibutils $(VERSION), upstream date $(DATE)
 
 override_dh_auto_build:
-	$(MAKE) -C lib -f Makefile.dynamic LIBTARGETIN=libbibutils.so CFLAGSIN=-fPIC SONAME=$(SONAME) SOMINOR=$(SOMINOR) all
+	$(MAKE) -C lib -f Makefile.dynamic LIBTARGETIN=libbibutils.so CFLAGSIN="-fPIC ${CFLAGSIN}" SONAME=$(SONAME) SOMINOR=$(SOMINOR) all
 	$(MAKE) -C bin -f Makefile.dynamic VERSION=$(VERSION) DATE=$(DATE) all
 	# this relies on target clean not removing the shared libs
 	$(MAKE) -C lib -f Makefile.static clean

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



More information about the debian-science-commits mailing list