[med-svn] [phast] 02/02: Hardening

Andreas Tille tille at debian.org
Sat Jun 4 09:20:53 UTC 2016


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

tille pushed a commit to branch master
in repository phast.

commit 5a94b3caa7f3507b6cad5ed8f54b2fb389dda795
Author: Andreas Tille <tille at debian.org>
Date:   Sat Jun 4 11:20:39 2016 +0200

    Hardening
---
 debian/patches/hardening.patch | 24 ++++++++++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..939cfb6
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,24 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 27 May 2016 18:06:35 +0200
+Description: Propagate hardening options
+
+--- a/src/make-include.mk
++++ b/src/make-include.mk
+@@ -48,7 +48,7 @@ ifneq ($(TARGETOS), Windows)
+ # CFLAGS = -g -fno-inline -Wall -DPHAST_DEBUG -DNDEBUG -mtune=native -fno-strict-aliasing -fPIC -O2 -pedantic -Wconversion -Wno-sign-conversion
+ #  CFLAGS = -g -fno-inline -Wall -DPHAST_DEBUG
+  # for best performance
+- CFLAGS = -O3 -Wall
++ CFLAGS += -O3 -Wall
+  # some other options
+  #CFLAGS = -mcpu=opteron -O3
+  #CFLAGS = -mcpu=pentiumpro -O3 
+@@ -137,7 +137,7 @@ LIBS = -lphast -framework vecLib -lc -lm
+ else
+ ifdef CLAPACKPATH
+ ifneq ($(TARGETOS), Windows)
+-  LIBS = -lphast -lclapack -lctmg -lcblas -lc -lf2c -lm -lpcre
++  LIBS = -lphast -lclapack -lctmg -lcblas -lc -lf2c -lm -lpcre $(LDFLAGS)
+ else
+   LIBS = -lphast -lm  ${CLAPACKPATH}/liblapack.a ${CLAPACKPATH}/libf2c.a ${CLAPACKPATH}/libblas.a
+ endif
diff --git a/debian/patches/series b/debian/patches/series
index bdd704a..744d043 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ do_not_install_to_opt.patch
 use_debian_packaged_libpcre.patch
 fix_include.patch
 use_debian_packaged_help2man.patch
+hardening.patch

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



More information about the debian-med-commit mailing list