From 366d53f8e9bd15453ed72004608730f7a61eb90c Mon Sep 17 00:00:00 2001 From: Will Estes Date: Sat, 14 Apr 2007 12:25:58 +0000 Subject: [PATCH] provide for a PIC version of libfl.a for shared libraries using flex scanners --- Makefile.am | 12 +++++++++++- NEWS | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index e767ac3..5bad607 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 20ee2dd..8978e62 100644 --- 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. -- 2.40.0