Closed Bug 298032 Opened 20 years ago Closed 20 years ago

need to keep generated import libraries from clobbering static versions of components

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: shaver, Assigned: shaver)

Details

Attachments

(2 files)

When a given build process needs to produce both dynamic and static versions of the same component (calendar, storage, webdav, and xmlextras for the sunbird+lightning combined build, for example), then we need to avoid having the import library generated by msvc collide name-wise with the static component file. Patch coming up.
This also stops copying import libs or dynamic components to dist/lib, which means that dist/lib only has static component libs in it. Huzzah.
Attachment #186617 - Flags: review?(benjamin)
Attachment #186617 - Flags: approval1.8b3?
Comment on attachment 186617 [details] [diff] [review] force the use of a dummy import lib, and nuke it afterwards elegant!
Attachment #186617 - Flags: review?(benjamin)
Attachment #186617 - Flags: review+
Attachment #186617 - Flags: approval1.8b3?
Attachment #186617 - Flags: approval1.8b3+
FIXED.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
That was slammed in awful quickly. Did anyone verify that we don't need to install those import libs for OS/2 any longer? The OS/2 tinderbox is missing. I recall that we removed that step once before only to have it added back.
Yep, it would appear our static sunbird is failing now. abwillis weakld: error: Unresolved symbol (UNDEF EXPORT) '_NSGetModule'. abwillis weakld: info: The symbol is referenced by: abwillis E:/cvs/work/mozilla/sbobj/storage/build/strgcmps.def abwillis Ignoring unresolved externals reported from weak prelinker. abwillis ILink : error LNK2022: _NSGetModule (alias _NSGetModule) : export undefined abwillis but running make in build or storage works fine abwillis The build problem is because sunbird builds the xpi as well as building itself... storage is being built static but the xpi is built dynamic... _NSGetModule is in the dynamic mozStorageModule.o but not the static one
Why do we think taht's related to this checkin? You were failing with that before I committed this (indeed, before I finished with the patch, IIRC). Can you file another bug on that, with the OS/2 platform set?
My apologies. I got this third hand. I'm in the process of building things static right now and I'll let you know the outcome.
so, I don't see that -IMPLIB thing in my linker flags, and I believe it's because LDFLAGS is overwritten on line 540 of config.mk: 540 LDFLAGS = $(OS_LDFLAGS) http://lxr.mozilla.org/seamonkey/source/config/config.mk#540 Am I missing something?
No, I'm missing something; I moved that append lower in config.mk, but didn't rediff after, and my revert-and-apply-diff defense against checking in extraneous changes wasn't helpful here. Update patch tomorrow, if I get a chance before I get sucked into errands. Thanks.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Biesi: does this fix things for you, too?
Attachment #186743 - Flags: review?(benjamin)
Attachment #186743 - Flags: approval1.8b3?
yep, that patch works for me.
Attachment #186743 - Flags: approval1.8b3? → approval1.8b3+
Attachment #186743 - Flags: review?(benjamin) → review+
FIXED, encore.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
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: