Package: phast / 1.6+dfsg-3

hardening.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Author: Andreas Tille <tille@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,8 +137,8 @@ LIBS = -lphast -framework vecLib -lc -lm
 else
 ifdef CLAPACKPATH
 ifneq ($(TARGETOS), Windows)
-  LIBS = -lphast -llapack -ltmglib -lblas -lc -lm -lpcre
+  LIBS = -lphast -llapack -ltmglib -lblas -lc -lm -lpcre $(LDFLAGS)
 else
   CFLAGS += -I${CLAPACKPATH}/INCLUDE -I${F2CPATH} -DPCRE_STATIC
   LIBS = -lphast -lm  ${CLAPACKPATH}/liblapack.a ${CLAPACKPATH}/libf2c.a ${CLAPACKPATH}/libblas.a
 endif