[med-svn] [centrifuge] 02/03: Propagate hardening options

Andreas Tille tille at debian.org
Mon Dec 18 15:38:29 UTC 2017


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

tille pushed a commit to branch master
in repository centrifuge.

commit 0a67ce6d8ba2cda12e0c50cc3c032921f38d2f6b
Author: Andreas Tille <tille at debian.org>
Date:   Mon Dec 18 16:30:41 2017 +0100

    Propagate hardening options
---
 debian/patches/hardening.patch | 25 +++++++++++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..28f0547
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,25 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Sat, 25 Nov 2017 21:24:23 +0100
+Description: Propagate hardening options
+
+--- a/Makefile
++++ b/Makefile
+@@ -168,7 +168,7 @@ RELEASE_FLAGS  = -O3 $(BITS_FLAG) $(SSE_
+ RELEASE_DEFS   = -DCOMPILER_OPTIONS="\"$(RELEASE_FLAGS) $(EXTRA_FLAGS)\""
+ NOASSERT_FLAGS = -DNDEBUG
+ FILE_FLAGS     = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
+-CFLAGS         = 
++#CFLAGS         = 
+ #CFLAGS         = -fdiagnostics-color=always
+ 
+ ifeq (1,$(USE_SRA))
+@@ -254,7 +254,8 @@ DEFS=-fno-strict-aliasing \
+ 	 $(CFLAGS) \
+      $(PREF_DEF) \
+      $(MM_DEF) \
+-     $(SHMEM_DEF)
++     $(SHMEM_DEF) \
++     $(LDFLAGS)
+ 
+ #
+ # centrifuge targets
diff --git a/debian/patches/series b/debian/patches/series
index 484d59a..8ca77cf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 fix_auto_ptr_usage_in_gcc-7.patch
 0002-Fix-build-with-rank.patch
 0003-Fix-make-install-DESTDIR.patch
+hardening.patch

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



More information about the debian-med-commit mailing list