summaryrefslogtreecommitdiff
blob: 24643929df2f9d37f76a6d3d063fca7f0dcd946f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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