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
32
33
34
35
36
37
38
39
40
41
|
diff -u -r src.orig/cw/Makefile src/cw/Makefile
--- src.orig/cw/Makefile 2009-07-21 15:08:34.000000000 +0200
+++ src/cw/Makefile 2009-07-21 15:09:16.000000000 +0200
@@ -34,7 +34,7 @@
cw.o: cw.c ../cwlib/cwlib.h
cw: cw.o
- $(CC) -o $@ cw.o ../cwutils/i18n.o ../cwutils/cmdline.o \
+ $(CC) $(LDFLAGS) -o $@ cw.o ../cwutils/i18n.o ../cwutils/cmdline.o \
../cwutils/memory.o $(LIBS) -lm
# Install targets.
diff -u -r src.orig/cwgen/Makefile src/cwgen/Makefile
--- src.orig/cwgen/Makefile 2009-07-21 15:08:34.000000000 +0200
+++ src/cwgen/Makefile 2009-07-21 15:09:34.000000000 +0200
@@ -32,7 +32,7 @@
cwgen.o: cwgen.c
cwgen: cwgen.o
- $(CC) -o $@ cwgen.o ../cwutils/i18n.o ../cwutils/cmdline.o \
+ $(CC) $(LDFLAGS) -o $@ cwgen.o ../cwutils/i18n.o ../cwutils/cmdline.o \
../cwutils/memory.o
# Install targets.
diff -u -r src.orig/cwlib/Makefile src/cwlib/Makefile
--- src.orig/cwlib/Makefile 2009-07-21 15:14:58.000000000 +0200
+++ src/cwlib/Makefile 2009-07-21 15:15:25.000000000 +0200
@@ -42,11 +42,11 @@
libcw.so.0.0.0: cwlib.o
if [ "$(CC_LINKS_SO)" = "yes" ]; then \
- $(CC) -shared -Wl,-soname,libcw.so.0 \
+ $(CC) $(LDFLAGS) -shared -Wl,-soname,libcw.so.0 \
-o libcw.so.0.0.0 cwlib.o -lm; \
else \
if [ "$(LD_LINKS_SO)" = "yes" ]; then \
- $(LD) -G -Wl,-soname,libcw.so.0 \
+ $(LD) $(LDFLAGS) -G -Wl,-soname,libcw.so.0 \
-o libcw.so.0.0.0 cwlib.o -lm; \
fi \
fi
|