File: hardening.patch

package info (click to toggle)
mssstest 3.0-7
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 240 kB
  • sloc: cpp: 1,895; makefile: 31
file content (24 lines) | stat: -rw-r--r-- 568 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
Description: propagate hardening options
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 26 Jan 2016 11:39:01 +0100

--- a/makefile
+++ b/makefile
@@ -3,14 +3,14 @@
 
 
 mssstest: $(mi).o $(mu).o
-	g++ -g -o mssstest $(mi).o $(mu).o -lm -lc
+	g++ -g -o mssstest $(mi).o $(mu).o -lm -lc $(LDFLAGS)
 
 
 $(mi).o: $(mi).cpp $(mi).h
-	g++ -c $(mi).cpp  -g -o $(mi).o
+	g++ $(CPPFLAGS) $(CXXFLAGS) -c $(mi).cpp  -g -o $(mi).o
 
 $(mu).o: $(mu).cpp
-	g++ -c $(mu).cpp  -g -o $(mu).o
+	g++ $(CPPFLAGS) $(CXXFLAGS) -c $(mu).cpp  -g -o $(mu).o
 
 clean:
 	rm -f *.o