summaryrefslogtreecommitdiff
path: root/packaging/flex-2.5.34-fPIC.patch
blob: 3517a1c2da44fa2eb794438eba93bce50be296d1 (plain)
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
We've been packaging an -fPIC enabled libfl.a since some time, switching to
the new scheme is not worth it, package a libfl_pic.a -> libfl.a symlink
instead.
---
 Makefile.am |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

--- Makefile.am.orig
+++ Makefile.am
@@ -40,8 +40,7 @@ indent = @INDENT@
 
 bin_PROGRAMS = flex
 lib_LIBRARIES = \
-	libfl.a \
-	libfl_pic.a
+	libfl.a
 
 flex_SOURCES = \
 	ccl.c \
@@ -70,13 +69,7 @@ libfl_a_SOURCES = \
 	libmain.c \
 	libyywrap.c
 
-libfl_pic_a_SOURCES = \
-	libmain.c \
-	libyywrap.c
-
-libfl_pic_a_CFLAGS =  \
-	-fPIC         \
-	$(AM_CFLAGS)
+libfl_a_CFLAGS = -fPIC $(AM_CFLAGS)
 
 noinst_HEADERS = \
 	flexdef.h \