File: hardening.patch

package info (click to toggle)
sim4 0.0.20121010-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,896 kB
  • sloc: ansic: 8,496; makefile: 31; sh: 15
file content (19 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Andreas Tille <tille@debian.org>
LastChanged: Fri, 02 Aug 2013 13:24:50 +0200
Description: Propagate hardening options

--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,10 @@
 # For Sun's compilers under Solaris, ``-fast'' works well.
 # For gcc, ``-O2'' works well.
 CC=cc
-CFLAGS=-O
+CFLAGS+=-g -O2 -Wall
 LDLIBS=-lm
  
 sim4:
-	$(CC) -o sim4 -I. $(CFLAGS) *.c $(LDLIBS)
+	$(CC) -o sim4 -I. $(CFLAGS) *.c $(LDLIBS) $(LDFLAGS)
 clean:
 	rm -f sim4 *.o