blob: b6554298808087bf0a01d66a99d484cf4003a846 (
plain)
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
|
--- a/local.mk.in
+++ b/local.mk.in
@@ -17,7 +17,8 @@
CC := @CC@
CFLAGS := @CFLAGS@
-CPPFLAGS = $(inc) @DEFS@
+LDFLAGS := @LDFLAGS@
+CPPFLAGS = @CPPFLAGS@ $(inc) @DEFS@
INSTALL := @INSTALL@
--- a/Makefile
+++ b/Makefile
@@ -58,7 +58,7 @@
# compile the program (and the objects)
all: $(prog)
$(prog): $(objs)
- $(CC) -o $(prog) $(objs) $(libs) $(CFLAGS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(prog) $(objs) $(libs)
--- a/tools/depend.sh
+++ b/tools/depend.sh
@@ -4,4 +4,4 @@
# Generated automatically from depend.sh.in by configure.
set -e
-gcc -MM $* | sed 's#\($*\)\.o[ :]*#\1.o $@ : #g'
+${CC:-cc} -MM $* | sed 's#\($*\)\.o[ :]*#\1.o $@ : #g'
|