Closed
Bug 297677
Opened 20 years ago
Closed 20 years ago
static builds need to explicitly reference libfoo.a, not rely on -L lib/components -lfoo
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: shaver, Assigned: shaver)
References
()
Details
Attachments
(1 file)
|
902 bytes,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
There are a variety of ways to end up with libfoo.so in lib/components, even when doing a static-app build, and if you're not in the list of blessed platforms which currently get addprefix love it's easy to end up linking against the wrong version. In the _best_ case, you get a link failure. It's probably also possible to end up with a binary that isn't as static as you'd like. I propose to make us use explicit filenames for the rest of the platforms as well. (Blocking 295659 is a bit of a stretch, but close enough.)
| Assignee | ||
Comment 1•20 years ago
|
||
mvl: want to see if this lets you build the XPI first in the calendar sequence, again?
Attachment #186318 -
Flags: review?(benjamin)
Updated•20 years ago
|
Attachment #186318 -
Flags: review?(benjamin) → review+
| Assignee | ||
Comment 2•20 years ago
|
||
So this isn't enough, because we still have the wrong sort of object files around when we're making the static lib (or the shared lib, I guess). (We could force PIC for the stuff that _might_ be extension-used, but that would defeat some of the purpose of a static build in the first place.) Benjamin: do you think we should land this anyway?
Comment 3•20 years ago
|
||
> Benjamin: do you think we should land this anyway?
I don't think anybody except calendar needs it, but I'm fine with landing it
as-is if it would make your life easier. Your call.
Comment 4•20 years ago
|
||
With this patch, i can build a static sunbird build on linux, even if the build still attempts to build a calendar.xpi. (no idea if the xpi works though)
| Assignee | ||
Comment 5•20 years ago
|
||
Comment on attachment 186318 [details] [diff] [review] the obvious, trivial patch Yeah, we need this.
Attachment #186318 -
Flags: approval1.8b3?
Updated•20 years ago
|
Attachment #186318 -
Flags: approval1.8b3? → approval1.8b3+
| Assignee | ||
Comment 6•20 years ago
|
||
FIXED.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•