Closed Bug 1237863 Opened 9 years ago Closed 9 years ago

Silence linker warnings from MOZ_FOLD_LIBS on Windows

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
mozilla47

People

(Reporter: ted, Assigned: ted)

References

Details

Attachments

(1 file)

We get a ton of linker warnings about linking NSPR into NSS because all the NSPR symbols are declspec(dllimport). They were bothering me while working on bug 1230117 so I fixed it.
Comment on attachment 8707471 [details] MozReview Request: bug 1237863 - Silence linker errors from MOZ_FOLD_LIBS on Windows. r=glandium https://reviewboard.mozilla.org/r/30721/#review27833 ::: config/external/nss/Makefile.in:258 (Diff revision 1) > +MOZ_FOLD_LIBS_FLAGS += -D_NSPR_BUILD_=1 _NSPR_BUILD_ changes the definition of NSPR_API/NSPR_DATA_API to use PR_EXPORT instead of PR_IMPORT. Technically, switching from one to the other only affects windows, because everywhere else, PR_EXPORT and PR_IMPORT are the same thing. So it seems to me you can remove the OS_TARGET test.
Attachment #8707471 - Flags: review?(mh+mozilla) → review+
Attachment #8707471 - Attachment description: MozReview Request: bug 1237863 - Silence linker errors from MOZ_FOLD_LIBS on Windows. r?glandium → MozReview Request: bug 1237863 - Silence linker errors from MOZ_FOLD_LIBS on Windows. r=glandium
Comment on attachment 8707471 [details] MozReview Request: bug 1237863 - Silence linker errors from MOZ_FOLD_LIBS on Windows. r=glandium Review request updated; see interdiff: https://reviewboard.mozilla.org/r/30721/diff/1-2/
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Target Milestone: mozilla46 → mozilla47
Depends on: 1242802
https://hg.mozilla.org/integration/mozilla-inbound/rev/e265e7992928c9ca7bacfd8bfca1929e974b2467 backout bug 1237863 - Silence linker errors from MOZ_FOLD_LIBS on Windows for causing shutdown crashes on Windows (bug 1242802). r=me
I backed this out for causing the crashes in bug 1242802. This doesn't seem worth fixing given that headache. When we tackle fixing NSS' build system we can make this go away.
Resolution: FIXED → WONTFIX
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: