httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Engelhardt <jeng...@medozas.de>
Subject Re: apxs is missing -fPIC and ignores it
Date Sun, 08 Jun 2008 18:47:09 GMT

On Sunday 2008-06-08 19:31, Arfrever Frehtes Taifersar Arahesis wrote:

>2008-06-07 13:29:26 Jan Engelhardt napisaƂ(a):
>> 
>> $ touch foo.c
>> $ apxs2 -c foo.c -fPIC
>> /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic   
>> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  
>> -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o foo.lo foo.c && 
>> touch foo.slo
>> /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o foo.la  
>> -rpath /usr/lib64/apache2 -module -avoid-version    foo.lo -fPIC
>> 
>> As can be seen, -fPIC is not passed to the compiler, but only to the 
>> link stage. Any ideas?
>
>apxs2 -Wc,-fPIC -c foo.c

Sometimes you miss the wood for the trees :-)
But still, should not apxs's libtool add -fPIC on its own,
like the normal (GNU) libtool does?

Mime
View raw message