kala mazoo wrote:
>
> Unpacking the flex-2.5.33 archive (again) and setting CFLAGS="-fPIC"
> before the configure/compilation of flex fixes this problem. Perhaps this
> should be done as a standard part of the CLFS book(s)?
>
>   
Only 2 of the objs should be built with -fPIC. The two in the libfl.a 
archive. make CC="gcc -fPIC" libfl.a would build a pic libfl.a.
> I don't know how many other packages in BLFS this would effect, in theory
> everything that tries to link against libfl.*  is going to bork...
>   
Not quite. Anything that tried to link libfl.a into a shared library 
would be broken. Shared libraries require pic code. Since a static 
archive is just a archive of the objs, the objs from flex would have to 
be compiled with -fPIC for it to be compiled into a shared library.

I have no problem myself with adding the one line 'make CC="gcc -fPIC" 
libfl.a' to clfs. The entire flex package should not be built with -fPIC 
though.

_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-dev

Reply via email to