[med-svn] [fastlink] 03/05: Add hardening flags

Andreas Tille tille at debian.org
Sun Jan 10 11:04:34 UTC 2016


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

tille pushed a commit to branch master
in repository fastlink.

commit e68d8f14c48634cc4aceeaff418a0b16624bb640
Author: Andreas Tille <tille at debian.org>
Date:   Sun Jan 10 12:00:08 2016 +0100

    Add hardening flags
---
 debian/patches/hardening.patch | 15 +++++++++++++++
 debian/patches/series          |  1 +
 debian/rules                   |  4 +---
 3 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..8a12f99
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,15 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Sun, 10 Jan 2016 10:17:50 +0100
+Description: Propagate hardening options
+
+--- a/4.1P/src/Makefile
++++ b/4.1P/src/Makefile
+@@ -312,7 +312,7 @@ SMALLCFLAGS = \
+ 	$(WARNFLAG)
+ 
+ # Linker flags
+-LDFLAGS = -lm
++LDFLAGS = -lm $(DEBIANLDFLAGS)
+ 
+ ######################################################
+ ############ parallel code variables #################
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..814900f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+hardening.patch
diff --git a/debian/rules b/debian/rules
index 31a85a0..06c3c64 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,7 @@ override_dh_clean:
 	cd 4.1P/src; make allclean
 
 override_dh_auto_build:
-	cd 4.1P/src
-	$(DEB_MAKE_ENVVARS) make $(if $(DEB_MAKE_MAKEFILE), -f $(DEB_MAKE_MAKEFILE),) -C $(DEB_BUILDDIR) \
-		CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"
+	cd 4.1P/src && make CFLAGS="$(CFLAGS)" DEBIANLDFLAGS="$(LDFLAGS)"
 
 get-orig-source:
 	sh debian/get-orig-source

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/fastlink.git



More information about the debian-med-commit mailing list