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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to