diff options
author | Stuart Herbert <stuart@gentoo.org> | 2005-05-22 09:14:19 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2005-05-22 09:14:19 +0000 |
commit | a74b1bc9241102506ea108fcc2b82b95bc3faff6 (patch) | |
tree | 8f010b44316adb42a05f7a265e8ea4ddef6b9e6e /eclass/php-sapi.eclass | |
parent | fix ppc64 support #92074 (diff) | |
download | gentoo-2-a74b1bc9241102506ea108fcc2b82b95bc3faff6.tar.gz gentoo-2-a74b1bc9241102506ea108fcc2b82b95bc3faff6.tar.bz2 gentoo-2-a74b1bc9241102506ea108fcc2b82b95bc3faff6.zip |
Fix for TEXTREL ELF problem
Diffstat (limited to 'eclass/php-sapi.eclass')
-rw-r--r-- | eclass/php-sapi.eclass | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/php-sapi.eclass b/eclass/php-sapi.eclass index c7714d6b8245..5650ba1dc003 100644 --- a/eclass/php-sapi.eclass +++ b/eclass/php-sapi.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/php-sapi.eclass,v 1.62 2005/05/20 01:26:22 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/php-sapi.eclass,v 1.63 2005/05/22 09:14:19 stuart Exp $ # Author: Robin H. Johnson <robbat2@gentoo.org> inherit eutils flag-o-matic multilib @@ -24,7 +24,7 @@ PHPMAJORVER=${MY_PV//\.*} [ -z "${MY_PF}" ] && MY_PF=${MY_P}-${PR} [ -z "${HOMEPAGE}" ] && HOMEPAGE="http://www.php.net/" [ -z "${LICENSE}" ] && LICENSE="PHP-3" -[ -z "${PROVIDE}" ] && PROVIDE="virtual/php" +[ -z "${PROVIDE}" ] && PROVIDE="virtual/php-${PV}" # PHP.net does automatic mirroring from this URI [ -z "${SRC_URI_BASE}" ] && SRC_URI_BASE="http://www.php.net/distributions" if [ -z "${SRC_URI}" ]; then @@ -503,6 +503,11 @@ php-sapi_src_compile() { myconf="${myconf} --libdir=/usr/${libdir}/php" myconf="${myconf} --with-pear=/usr/lib/php" + # fix ELF-related problems + if has_pic ; then + myconf="${myconf} --with-pic" + fi + # filter the following from C[XX]FLAGS regardless, as apache won't be # supporting LFS until 2.2 is released and in the tree. Fixes bug #24373. filter-flags "-D_FILE_OFFSET_BITS=64" |