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 |
| Cc: |
Description
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))
Attachments
Change History
Changed 2 years ago by strohel
- Attachment 0ad-spidermonkey-respect-CHOST.patch added
comment:2 Changed 2 years ago by philip
- Status changed from new to closed
- Resolution set to fixed
(In [8858]) Fix #715 (respect CHOST/etc when building SpiderMonkey?), based on patch from strohel

0ad-spidermonkey-respect-CHOST.patch