Closed Bug 236617 Opened 22 years ago Closed 20 years ago

Statically link JS

Categories

(Minimo Graveyard :: Build Config, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: dougt, Assigned: dougt)

References

Details

Attachments

(1 file, 1 obsolete file)

Based on my investigation, we will save ~68k by statically linking JS. lets-do-it!
Blocks: 236580
I have no problem with this, but cc'ing bryner, who was working on gcc visibility hacks to work around ELF PIC inefficiencies. /be
you might have problems with my current patch. :-) Anyone remember the issue wrt why we don't statically link js in mozilla? something to do with xpinstall iirc.
Statically link JS to what? the xpinstall stub installer would be fine if we statically linked JS and XPCOM together into one meta-library (and we could link NSPR as well). We'd have to deal with backwards-compatibility crap, since a fair number of extensions link against libmozjs.so/js3250.dll.
aren't those extensions part of the bathwater and not the bath?
err. baby.
well... The JS APIs are technically frozen, as are NSPR. Does that mean we have frozen the name of the DLL to link against? Darin and I discussed this WRT the xpcom glue, and my efforts to not have the glue depend on NSPR (I'm almost done with that patch, BTW).
*** Bug 237575 has been marked as a duplicate of this bug. ***
Blocks: 273568
Target Milestone: --- → Future
Attached patch patch v.1 (obsolete) — Splinter Review
Attachment #204564 - Flags: review?(benjamin)
Comment on attachment 204564 [details] [diff] [review] patch v.1 OK, this doesn't touch MOZ_JS_LIBS, so if somebody were to accidentally use this in a non-static build all hell would break loose. So at least I'd like a check after --enable-js-static-build that it is only enabled along with --enable-static. Something similar to http://lxr.mozilla.org/mozilla/source/configure.in#6174
Attachment #204564 - Flags: review?(benjamin) → review-
Attached patch patch v.2Splinter Review
Attachment #204564 - Attachment is obsolete: true
Attachment #204565 - Flags: review?(benjamin)
Attachment #204565 - Flags: review?(benjamin) → review+
Checking in configure.in; /cvsroot/mozilla/configure.in,v <-- configure.in new revision: 1.1561; previous revision: 1.1560 done Checking in js/src/Makefile.in; /cvsroot/mozilla/js/src/Makefile.in,v <-- Makefile.in new revision: 3.96; previous revision: 3.95 done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: