Re: libtool -prefer-non-pic for apxs builds?
| From: | Rasmus Lerdorf | Date: | Fri, 01 Aug 2003 20:11:58 +0000 |
| Subject: | Re: libtool -prefer-non-pic for apxs builds? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3689@lists.php.net to get a copy of this message | ||
On Fri, 1 Aug 2003, Sascha Schumann wrote:
> Not all dls support non-PIC code in DSOs. If you know that
> your system handles it fine, just pass the right -pic flag to
> configure.
Can't we check for that at configure time?
And I don't think we can do it at configure time currently. At least the
obvious --without-pic doesn't work. configure.in has:
unset with_pic
case $php_build_target in
program|static)
standard_libtool_flag='-prefer-non-pic -static'
if test -z "$PHP_MODULES"; then
enable_shared=no
fi
;;
shared)
enable_static=no
standard_libtool_flag=-prefer-pic
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module"
;;
esac
So it looks to me like the build target overrides the pic setting and
there is no way to build a shared library using -prefer-non-pic
-Rasmus