summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2009-01-04 15:09:36 +0000
committerChristoph Mende <angelos@gentoo.org>2009-01-04 15:09:36 +0000
commit069711bc5afa5be46437a1e39046ab7de86f667e (patch)
tree1f2f8ca0b2ddf06b70ed6b6977e79d8540af58f1 /app-text/cwtext/files
parentFix missing kde4-meta_src_prepare call. (diff)
downloadgentoo-2-069711bc5afa5be46437a1e39046ab7de86f667e.tar.gz
gentoo-2-069711bc5afa5be46437a1e39046ab7de86f667e.tar.bz2
gentoo-2-069711bc5afa5be46437a1e39046ab7de86f667e.zip
QA: Fix compilation with --as-needed (bug 246958), respect LDFLAGS
(Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64)
Diffstat (limited to 'app-text/cwtext/files')
-rw-r--r--app-text/cwtext/files/cwtext-0.94-asneeded.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-text/cwtext/files/cwtext-0.94-asneeded.patch b/app-text/cwtext/files/cwtext-0.94-asneeded.patch
new file mode 100644
index 000000000000..ab0f16ee75b3
--- /dev/null
+++ b/app-text/cwtext/files/cwtext-0.94-asneeded.patch
@@ -0,0 +1,19 @@
+--- makefile.orig 2009-01-04 16:00:44.467365615 +0100
++++ makefile 2009-01-04 16:02:16.338692800 +0100
+@@ -8,13 +8,13 @@
+ install -sc cwmm ${PREFIX}/bin
+
+ cwmm: cwmm.o morse.o
+- ${CC} ${CFLAGS} -o cwmm $^
++ ${CC} ${CFLAGS} $(LDFLAGS) -o cwmm $^
+
+ cwpcm: cwpcm.o morse.o pcm.o
+- ${CC} ${CFLAGS} -o cwpcm -lm $^
++ ${CC} ${CFLAGS} $(LDFLAGS) -o cwpcm $^ -lm
+
+ cwtext: cwtext.o morse.o
+- ${CC} ${CFLAGS} -o cwtext $^
++ ${CC} ${CFLAGS} $(LDFLAGS) -o cwtext $^
+
+ cwpcm.o: cwpcm.c morse.h pcm.h
+ ${CC} ${CFLAGS} -c cwpcm.c