[flext] autotools builders

dmotd inaudible at simplesuperlativ.es
Tue Mar 22 10:16:17 CET 2011


hi thomas,

i've found the issue with the flext builder not honouring the 
'--with-pic' flag, libtool itself wasn't responsible for static 
libraries so the flag had no effect. the fix is to let libtool do the 
building of the static libs as well as the shared ones.

i've attatched a patch that does the job (minor changes to 
flext/source/Makefile.am). seems to be without side-effects.

further reading:
http://sourceware.org/autobook/autobook/autobook_73.html
http://www.freesoftwaremagazine.com/books/agaal/building_shared_libraries_once_using_autotools

cheers,
dmotd

> 2011/3/21 dmotd<inaudible at simplesuperlativ.es>:
>> one thing i've noticed is that the autotools script for flext itself is not
>> building PIC code until the libtool stage, this is with --with-pic and
>> --enable-shared as configure options. what results is libraries with
>> relocation errors when other libs try to link against them (pool/py). i can
>> get around this by manually forcing:
>>   CXXFLAGS="$CXXFLAGS -fPIC -DPIC" ./configure&&  make
>> which works as advertised. haven't tracked down the source of this problem,
>> any ideas?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libtool-builds-static.patch
Type: text/x-patch
Size: 2073 bytes
Desc: not available
URL: <http://grrrr.org/pipermail/flext/attachments/20110322/0d1844f1/attachment.bin>


More information about the flext mailing list