Package: mt-st / 1.1-6

10-makefile_flags.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
Description: use CFLAGS and LDFLAGS from environment
Author: Ivo De Decker <ivo.dedecker@ugent.be>
Forwarded: no
Last-Update: 2013-06-01

--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS=  -Wall -O2
+#CFLAGS=  -Wall -O2
 SBINDIR= /sbin
 BINDIR=  /bin
 USRBINDIR= /usr/bin
@@ -9,10 +9,10 @@
 all:	mt stinit
 
 mt:	mt.c
-	$(CC) $(CFLAGS) -o mt mt.c
+	$(CC) $(CFLAGS) $(LDFLAGS) -o mt mt.c
 
 stinit:	stinit.c
-	$(CC) $(CFLAGS) -o stinit stinit.c
+	$(CC) $(CFLAGS) $(LDFLAGS) -o stinit stinit.c
 
 install: mt stinit
 	install -s mt $(MTDIR)