Ticket #715 (closed defect: fixed)
[PATCH] Bundled SpiderMonkey fails to build on 32bit userland on 64bit kernel (Linux)
|Reported by:||strohel||Owned by:|
|Priority:||Should Have||Milestone:||Alpha 4|
|Component:||Non-game systems||Keywords:||buildsystem, review|
Due to some silly autodetection, Spidermonkey wants to compile itself as 64bit (64bit macros are set), but the compiler still builds it as 32bit, resulting in a build failue.
On such build log can be found at http://bugs.gentoo.org/attachment.cgi?id=244021&action=view (more info at http://bugs.gentoo.org/show_bug.cgi?id=278541#c37)
Attached patch adds support for (fairly standardised) CTARGET, CHOST and CBUILD environment variables to libraries/spidermonkey-tip/build.sh. This change alone fixes build in Gentoo, whose package manager sets these variables during build.
(the echo line in the patch is just debug, you may want to strip these (or not))