Package: otp / 1:1.2.2-1

makefile.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
Fix CFLAGS for hardening
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 
 CC = gcc
 #CFLAGS = -g -DDEBUG
-CFLAGS = -O -Wall
+#CFLAGS = -O -Wall
 
 VERSION = 1.2.2
 
@@ -11,7 +11,7 @@
 	md5.h otp.1 otp.c otp.exe random.c test.bat test.mas test.sh
 
 otp:	otp.o md5.o random.o
-	$(CC) $(CFLAGS) otp.o md5.o random.o -o otp
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) otp.o md5.o random.o -o otp
 
 manpage:
 	nroff -man otp.1 | $(PAGER)