File: hardening.patch

package info (click to toggle)
seqtk 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 200 kB
  • ctags: 204
  • sloc: ansic: 2,298; makefile: 21
file content (20 lines) | stat: -rw-r--r-- 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Andreas Tille <tille@debian.org>
Last-Changed: Sat, 01 Feb 2014 13:50:28 +0100
Description: Propagate hardening options


--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
 CC=gcc
-CFLAGS=-g -Wall -O2 -Wno-unused-function
+CFLAGS+=-g -Wall -O2 -Wno-unused-function
 
 all:seqtk
 
 seqtk:seqtk.c khash.h kseq.h
-		$(CC) $(CFLAGS) seqtk.c -o $@ -lz -lm
+		$(CC) $(CFLAGS) seqtk.c -o $@ -lz -lm $(LDFLAGS)
 
 clean:
 		rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a *.dSYM session*