Package: parsinsert / 1.04-2

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 27 Feb 2014 16:50:26 +0000
Description: Propagate hardening options

--- a/makefile
+++ b/makefile
@@ -9,15 +9,15 @@
 PROGRAM = ParsInsert
 OBJECTS = AttrList.o Knox_Stddef.o PNode.o SeqList.o Taxonomy.o ParsInsert.o
 
-CFLAGS   = -g -O3
-CC       = g++
+CFLAGS  += -g -O3
+CXX     ?= g++
 INCLUDES =
 LIBS     = -lm -lc
 
 .SUFFIXES:	.o .cpp
 
 .cpp.o:
-	$(CC) $(CFLAGS) -c -o $@ $<
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
 
 all:    $(PROGRAM) 
 
@@ -26,12 +26,12 @@
 
 TEST_OBJECTS = PNode.o AttrList.o Knox_Stddef.o Test.o
 test:  $(TEST_OBJECTS)
-	$(CC) $(CFLAG) -o Test $(TEST_OBJECTS) $(LIBS)
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o Test $(TEST_OBJECTS) $(LIBS) $(LDFLAGS)
 
 Knox_Stddef.o: Knox_Stddef.cpp Knox_Stddef.h
 
 $(PROGRAM):	$(OBJECTS)
-	$(CC) $(CFLAG) -o $(PROGRAM) $(OBJECTS) $(LIBS)
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $(PROGRAM) $(OBJECTS) $(LIBS) $(LDFLAGS)
 
 TEST_DIR = ./TestData
 test_short = short1000_NAST