summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-radio/unixcw/files/unixcw-2.3-ldflags.patch')
-rw-r--r--media-radio/unixcw/files/unixcw-2.3-ldflags.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/media-radio/unixcw/files/unixcw-2.3-ldflags.patch b/media-radio/unixcw/files/unixcw-2.3-ldflags.patch
new file mode 100644
index 000000000000..bbd1c7402dbb
--- /dev/null
+++ b/media-radio/unixcw/files/unixcw-2.3-ldflags.patch
@@ -0,0 +1,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