summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2006-05-18 16:40:21 +0000
committerLuca Longinotti <chtekk@gentoo.org>2006-05-18 16:40:21 +0000
commit2b958d7bf82d11facd6ac6581b6888c3dcd738ed (patch)
tree0f05c31f88d5c30d026e7f54127054d7a225803c /eclass/php5_0-sapi.eclass
parentRemoved obsolete version (diff)
downloadgentoo-2-2b958d7bf82d11facd6ac6581b6888c3dcd738ed.tar.gz
gentoo-2-2b958d7bf82d11facd6ac6581b6888c3dcd738ed.tar.bz2
gentoo-2-2b958d7bf82d11facd6ac6581b6888c3dcd738ed.zip
Fix bug #130974, tnx to Flameeyes for pointing it out.
Diffstat (limited to 'eclass/php5_0-sapi.eclass')
-rw-r--r--eclass/php5_0-sapi.eclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/php5_0-sapi.eclass b/eclass/php5_0-sapi.eclass
index 99af907b9315..6b6630ddb988 100644
--- a/eclass/php5_0-sapi.eclass
+++ b/eclass/php5_0-sapi.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php5_0-sapi.eclass,v 1.21 2006/04/22 22:14:35 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php5_0-sapi.eclass,v 1.22 2006/05/18 16:40:21 chtekk Exp $
#
# ########################################################################
#
@@ -22,7 +22,7 @@
CONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob frontbase hyperwave-api informix interbase mnogosearch msql oci8 oracle7 ovrimos pfpro sapdb solid sybase sybase-ct"
EBUILD_SUPPORTS_SHAREDEXT="1"
-inherit flag-o-matic eutils phpconfutils libtool php-common-r1
+inherit flag-o-matic eutils phpconfutils libtool php-common-r1 toolchain-funcs
# set MY_PHP_P in the ebuild
@@ -514,6 +514,9 @@ php5_0-sapi_src_compile() {
# Support user-passed configuration parameters
[[ -z "${EXTRA_ECONF}" ]] && EXTRA_ECONF=""
+ # Set the correct compiler for cross-compilation
+ tc-export CC
+
# We don't use econf, because we need to override all of its settings
./configure --prefix=${destdir} --sysconfdir=/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed"
emake || die "make failed"