]> granicus.if.org Git - flex/commitdiff
provide for a PIC version of libfl.a for shared libraries using flex scanners
authorWill Estes <wlestes@users.sourceforge.net>
Sat, 14 Apr 2007 12:25:58 +0000 (12:25 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Sat, 14 Apr 2007 12:25:58 +0000 (12:25 +0000)
Makefile.am
NEWS

index e767ac34a7e5ead6bffcde9559881efbdc3110e9..5bad6071e80e6b3c939d674b67b69de58889384a 100644 (file)
@@ -39,7 +39,9 @@ m4 = @M4@
 indent = @INDENT@
 
 bin_PROGRAMS = flex
-lib_LIBRARIES = libfl.a
+lib_LIBRARIES = \
+       libfl.a \
+       libfl_pic.a
 
 flex_SOURCES = \
        ccl.c \
@@ -68,6 +70,14 @@ libfl_a_SOURCES = \
        libmain.c \
        libyywrap.c
 
+libfl_pic_a_SOURCES = \
+       libmain.c \
+       libyywrap.c
+
+libfl_pic_a_CFLAGS =  \
+       -fPIC         \
+       $(AM_CFLAGS)
+
 noinst_HEADERS = \
        flexdef.h \
        flexint.h \
diff --git a/NEWS b/NEWS
index 20ee2ddf820aac9375baa578f9a57a509fbab4a1..8978e622a6368623293532d7c3d74b55f8697916 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,10 @@ See the file COPYING for copying conditions.
 
 * after version 2.5.33
 
+** flex now provides for a libfl_pic.a compiled with position
+   independent code. Particularly useful when including a flex scanner
+   in a shared library and with more recent versions of gcc. Thanks to the Debian project for the idea.
+
 ** SourceForge feature request #1658379: Expose YY_BUF_SIZE in the
        header file.