File: hardening.patch

package info (click to toggle)
hmmer2 2.3.2%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,660 kB
  • sloc: ansic: 15,991; sh: 2,527; makefile: 305; perl: 266
file content (28 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (2)
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
26
27
28
Author: Andreas Tille <tille@debian.org>
Last-Update: Fri, 11 Jan 2019 15:43:07 +0100
Description: Propagate hardening options

--- a/Makefile
+++ b/Makefile
@@ -12,8 +12,8 @@ export MANDIR      = ${prefix}/share/man
 export PROGSUFFIX = 2
 export MANSUFFIX = 1
 
-export CFLAGS = -pipe -Wall -Wextra -fPIC -O3
-export LIBS   = -lm -pthread
+export CFLAGS += -pipe -Wall -Wextra -fPIC -O3
+export LIBS    = -lm -pthread
 
 # The program lists below for HMMER are not necessarily
 # a complete manifest. They are the list of stable programs that the
--- a/src/Makefile
+++ b/src/Makefile
@@ -45,7 +45,7 @@ HDRS =	config.h\
 all:	 $(PROGS)
 
 ${PROGS}: %: %.o ${OBJS}
-	${CC} ${CFLAGS} ${MYLIBDIR} -o $@ $@.o ${OBJS} ${MYLIBS} ${PTHREAD_LIBS} ${LIBS}
+	${CC} ${CFLAGS} ${MYLIBDIR} -o $@ $@.o ${OBJS} ${MYLIBS} ${PTHREAD_LIBS} ${LIBS} $(LDFLAGS)
 
 
 #################################################################