Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3689 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26872 invoked from network); 1 Aug 2003 20:12:03 -0000 Received: from unknown (HELO www.lerdorf.com) (66.93.78.119) by pb1.pair.com with SMTP; 1 Aug 2003 20:12:03 -0000 Received: from rasmus2.corp.yahoo.com (rasmus2.corp.yahoo.com [207.126.232.175]) by www.lerdorf.com (8.12.9/8.12.9/Debian-5) with ESMTP id h71KC2DE031435; Fri, 1 Aug 2003 13:12:02 -0700 Date: Fri, 1 Aug 2003 13:11:58 -0700 (PDT) To: Sascha Schumann cc: Ilia Alshanetsky , internals@lists.php.net In-Reply-To: Message-ID: References: <200308011431.57345.ilia@prohost.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] libtool -prefer-non-pic for apxs builds? From: rasmus@lerdorf.com (Rasmus Lerdorf) 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