summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2005-05-22 09:14:19 +0000
committerStuart Herbert <stuart@gentoo.org>2005-05-22 09:14:19 +0000
commitbc9990af61f266c641c032a2cb402fccb691ee0b (patch)
tree73a599013ed553b89bf077435dbe8ab9ad95e75f /eclass/php-sapi.eclass
parentfix ppc64 support #92074 (diff)
downloadhistorical-bc9990af61f266c641c032a2cb402fccb691ee0b.tar.gz
historical-bc9990af61f266c641c032a2cb402fccb691ee0b.tar.bz2
historical-bc9990af61f266c641c032a2cb402fccb691ee0b.zip
Fix for TEXTREL ELF problem
Diffstat (limited to 'eclass/php-sapi.eclass')
-rw-r--r--eclass/php-sapi.eclass9
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"