diff options
Diffstat (limited to 'packaging/flex-2.5.34-fPIC.patch')
-rw-r--r-- | packaging/flex-2.5.34-fPIC.patch | 34 |
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 \ |