Closed
Bug 933047
Opened 12 years ago
Closed 12 years ago
configure should fail if CXX can't link C++ executables
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla28
People
(Reporter: mshal, Assigned: glandium)
References
Details
Attachments
(2 files, 2 obsolete files)
|
1.05 KB,
patch
|
Details | Diff | Splinter Review | |
|
2.79 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
While trying to setup a cross compile, I inadvertently set CXX to be 'clang' instead of 'clang++' in my mozconfig. The configure step still passed, but the build failed later when trying to link a C++ executable because it wasn't using the right libraries. It would be nice if configure would check to make sure that CXX is actually capable of linking properly.
| Reporter | ||
Comment 1•12 years ago
|
||
Does this look somewhat appropriate? It seems to correctly flag CXX=clang in the mozconfig as invalid, though I have to rm -rf objdir when I change CXX.
Attachment #824986 -
Flags: feedback?(mh+mozilla)
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #824987 -
Flags: review?(ted)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 824986 [details] [diff] [review]
0001-Bug-933047-WIP.patch
This is roughly what i did, at a different level with a different test code.
Attachment #824986 -
Flags: feedback?(mh+mozilla)
| Assignee | ||
Updated•12 years ago
|
Attachment #824987 -
Attachment is obsolete: true
Attachment #824987 -
Flags: review?(ted)
Updated•12 years ago
|
Attachment #824999 -
Flags: review?(ted) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
sigh. the test doesn't work with MSVC. OTOH, we do have a specific similar test for MSVC already in configure.in.
| Assignee | ||
Comment 6•12 years ago
|
||
This fixes it. The fixup is trivial enough to not rerequest review.
| Assignee | ||
Updated•12 years ago
|
Attachment #824999 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Attachment #825103 -
Flags: review+
| Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•8 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•