summaryrefslogtreecommitdiff
path: root/packaging/flex-2.5.34-fPIC.patch
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-04 18:16:57 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-04 18:16:57 -0800
commit0960e23e38178233fc295c3d87760f6f8fac58bf (patch)
tree5c65b4816581732cc8db33152aad1eb0546d7efa /packaging/flex-2.5.34-fPIC.patch
parentc29d6e204b4dfe99a2f08c258652823e4c26c324 (diff)
downloadflex-0960e23e38178233fc295c3d87760f6f8fac58bf.tar.gz
flex-0960e23e38178233fc295c3d87760f6f8fac58bf.tar.bz2
flex-0960e23e38178233fc295c3d87760f6f8fac58bf.zip
add packaging
Diffstat (limited to 'packaging/flex-2.5.34-fPIC.patch')
-rw-r--r--packaging/flex-2.5.34-fPIC.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/packaging/flex-2.5.34-fPIC.patch b/packaging/flex-2.5.34-fPIC.patch
new file mode 100644
index 0000000..3517a1c
--- /dev/null
+++ b/packaging/flex-2.5.34-fPIC.patch
@@ -0,0 +1,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 \