summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/linuxdoc-tools/files/linuxdoc-tools-0.9.21-ldflags.patch')
-rw-r--r--app-text/linuxdoc-tools/files/linuxdoc-tools-0.9.21-ldflags.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-text/linuxdoc-tools/files/linuxdoc-tools-0.9.21-ldflags.patch b/app-text/linuxdoc-tools/files/linuxdoc-tools-0.9.21-ldflags.patch
new file mode 100644
index 000000000000..24643929df2f
--- /dev/null
+++ b/app-text/linuxdoc-tools/files/linuxdoc-tools-0.9.21-ldflags.patch
@@ -0,0 +1,19 @@
+Respect FLAGS
+
+http://bugs.gentoo.org/show_bug.cgi?id=287555
+
+--- rtf-fix/Makefile
++++ rtf-fix/Makefile
+@@ -1,11 +1,9 @@
+-CC=gcc
+ LEX=flex
+-CFLAGS=-O
+
+ all: rtf2rtf
+
+ rtf2rtf: rtf2rtf.c
+- $(CC) $(CFLAGS) -o rtf2rtf rtf2rtf.c -lfl
++ $(CC) $(LDFLAGS) $(CFLAGS) -o rtf2rtf rtf2rtf.c -lfl
+
+ rtf2rtf.c: rtf2rtf.l
+ $(LEX) -t rtf2rtf.l>rtf2rtf.c