Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130974 - dev-lang/php fails on cross-compilation
Summary: dev-lang/php fails on cross-compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-23 08:41 UTC by Josu López Fernández
Modified: 2006-05-18 09:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
php-4.4.2.ebuild.patch (php-4.4.2.ebuild.patch,537 bytes, patch)
2006-04-23 08:42 UTC, Josu López Fernández
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Josu López Fernández 2006-04-23 08:41:15 UTC
Hello!
dev-lang/php fails on cross-compilation, because it assumes that the compiler is 'gcc', so between different arches this causes problems during the compilation.
If you execute ./configure --help you can see this message:
'To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.'
So, with a simple 'tc-export CC' in src_compile() works for me. I attach a patch for php-4.4.2.ebuild.

Good bye!
Comment 1 Josu López Fernández 2006-04-23 08:42:28 UTC
Created attachment 85277 [details, diff]
php-4.4.2.ebuild.patch
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2006-05-18 09:49:02 UTC
This was fixed in the eclasses now, so it's effective for all dev-lang/php ebuilds.
Thanks for pointing this out and the fix for it!
Best regards, CHTEKK.