Closed Bug 462427 Opened 16 years ago Closed 11 years ago

CROSS_COMPILE should not be required when cross compiling

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla30

People

(Reporter: dougt, Assigned: glandium)

References

Details

Attachments

(1 file)

in our mozconfig, in order to build from windows 32 to windows ce, it is required that we set:

CROSS_COMPILE = 1

However, it appears that this flag is superficial and autoconf already can tell if you are cross compiling based on the target and host flags.

Furthermore, code in configure.in, such as:

http://mxr.mozilla.org/mozilla-central/source/js/src/configure.in#215

is not being executed.

We should clean this up, and not required CROSS_COMPILE to be defined and simply determine if we are cross compiling based on the target being set.
Turns out I'm backslapped by this in bug 969164 because of how poorly we're subconfiguring libffi. It turns out js/src is already setting CROSS_COMPILE=1 semi-automatically, so that makes libffi happy by chance, and moving libffi subconfigure to top-level breaks the charm. So, might as well do the right thing with CROSS_COMPILE.
Blocks: 969164
Assignee: nobody → mh+mozilla
OS: Mac OS X → All
Hardware: x86 → All
Depends on: 748138
(In reply to Mike Hommey [:glandium] from comment #2)
> Created attachment 8372184 [details] [diff] [review]
> Stop requiring CROSS_COMPILE being set
> 
> https://tbpl.mozilla.org/?tree=Try&rev=05e93b3ebaa8

A note: this patch also makes us stop pretending that the linux 32 bits are cross compiles when in fact, they aren't because we build both host and target stuff with gcc -m32.
Attachment #8372184 - Flags: review?(ted) → review+
https://hg.mozilla.org/mozilla-central/rev/01de43f70bed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: