File: hardening.patch

package info (click to toggle)
njplot 2.4-7
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 404 kB
  • ctags: 659
  • sloc: ansic: 6,164; makefile: 75; sh: 19
file content (36 lines) | stat: -rw-r--r-- 1,019 bytes parent folder | download | duplicates (3)
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
29
30
31
32
33
34
35
36
Description: Propagate hardening options
Author: Andreas Tille <tille@debian.org>
Last-Update: Fri, 15 Jan 2016 10:56:56 +0100

--- a/makefile
+++ b/makefile
@@ -16,24 +16,24 @@ OBJECTS = njplot-vib.o
 OBJUNROOTED = unrooted-vib.o preptree.o
 
 
-CFLAGS  = -c -DWIN_MOTIF -Dunix -I$(VIBRANT) $(HELPFILENAME) $(NO_PDF)
+CFLAGS += -c -DWIN_MOTIF -Dunix -I$(VIBRANT) $(HELPFILENAME) $(NO_PDF)
 	
 all: njplot  unrooted newicktops newicktotxt
 
 
 njplot : $(OBJECTS)
 	$(CC) -o njplot $(OBJECTS) \
-        -lvibrant -lncbi -lXm -lXt -lm
+        -lvibrant -lncbi -lXm -lXt -lm $(LDFLAGS)
         
 unrooted : $(OBJUNROOTED)
 	$(CC) -o unrooted $(OBJUNROOTED) \
-        -lvibrant -lncbi -lXm -lXt -lm
+        -lvibrant -lncbi -lXm -lXt -lm $(LDFLAGS)
 
 newicktops: njplot-vib.c
-	$(CC) -DNO_GUI  -DNO_PDF -o $@ njplot-vib.c -lm
+	$(CC) -DNO_GUI  -DNO_PDF -o $@ njplot-vib.c -lm $(LDFLAGS)
 
 newicktotxt: njplot-vib.c
-	$(CC) -DTTY  -o $@ njplot-vib.c -lm
+	$(CC) -DTTY  -o $@ njplot-vib.c -lm $(LDFLAGS)
 
 
 .c.o :