Closed
Bug 1043082
Opened 11 years ago
Closed 11 years ago
NSPR's build system hardcodes -MD
Categories
(NSPR :: NSPR, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
4.10.7
People
(Reporter: ehsan.akhgari, Assigned: wtc)
References
Details
Attachments
(3 files, 1 obsolete file)
1.53 KB,
patch
|
ehsan.akhgari
:
review+
wtc
:
checked-in+
|
Details | Diff | Splinter Review |
1.83 KB,
patch
|
wtc
:
checked-in+
|
Details | Diff | Splinter Review |
2.26 KB,
patch
|
ehsan.akhgari
:
review+
wtc
:
checked-in+
|
Details | Diff | Splinter Review |
See <http://mxr.mozilla.org/mozilla-central/source/nsprpub/configure.in#2006>.
For AddressSanitizer, we need to build with static CRT. Wan-Teh, can you please suggest a good way to override -MD with -MT in those builds from the Mozilla build system? Thanks!
Flags: needinfo?(wtc)
Reporter | ||
Comment 1•11 years ago
|
||
The same pattern happens in NSS as well. <http://mxr.mozilla.org/mozilla-central/source/security/nss/coreconf/WIN32.mk#155> Any advice to fix that is also really appreciated!
Reporter | ||
Comment 2•11 years ago
|
||
ping?
Assignee | ||
Comment 3•11 years ago
|
||
Ehsan: sorry about the delay. I will work on this next Monday or Tuesday.
Flags: needinfo?(wtc)
Assignee | ||
Comment 4•11 years ago
|
||
I seem to remember the NSPR or NSS build system used to have
a USE_STATIC_RTL makefile variable to control this. This patch
adds a --enable-static-rtl option to NSPR's configure script.
Attachment #8468193 -
Flags: review?(ehsan)
Flags: needinfo?(ehsan)
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8468195 -
Flags: review?(ehsan)
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8468193 [details] [diff] [review]
NSPR: add the --enable-static-rtl configure option
Review of attachment 8468193 [details] [diff] [review]:
-----------------------------------------------------------------
::: configure.in
@@ +386,5 @@
> [ --enable-debug-rtl Use the MSVC debug runtime library],
> [ if test "$enableval" = "yes"; then
> USE_DEBUG_RTL=1
> else
> USE_DEBUG_RTL=0
You may have noticed that the USE_DEBUG_RTL variable may
also assume the value of 0. This wasn't the case until
recently:
https://hg.mozilla.org/projects/nspr/diff/8175a7a0f186/configure.in
I modeled the USE_STATIC_RTL variable after how USE_DEBUG_RTL
was used before.
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
OS: Mac OS X → Windows 7
Priority: -- → P1
Reporter | ||
Comment 7•11 years ago
|
||
Comment on attachment 8468193 [details] [diff] [review]
NSPR: add the --enable-static-rtl configure option
Review of attachment 8468193 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great, thanks!
Attachment #8468193 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 8•11 years ago
|
||
Comment on attachment 8468195 [details] [diff] [review]
NSS: add the USE_STATIC_RTL makefile variable
Review of attachment 8468195 [details] [diff] [review]:
-----------------------------------------------------------------
::: coreconf/WIN32.mk
@@ +163,5 @@
> else
> + ifdef USE_STATIC_RTL
> + OS_CFLAGS += -MT
> + else
> + OS_CFLAGS += -MD
-MD is also added to OS_CFLAGS around line 139 under |ifdef BUILD_OPT|, shouldn't you handle that case as well?
Attachment #8468195 -
Flags: review?(ehsan) → review-
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(ehsan)
Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 8468193 [details] [diff] [review]
NSPR: add the --enable-static-rtl configure option
NSPR patch checked in: https://hg.mozilla.org/projects/nspr/rev/74f34c743ff5
Attachment #8468193 -
Flags: checked-in+
Assignee | ||
Comment 10•11 years ago
|
||
I noticed the help message of the new --enable-static-rtl configure option
was over-indented. This patch fixes that.
https://hg.mozilla.org/projects/nspr/rev/a19171d4cd48
Attachment #8469727 -
Flags: checked-in+
Assignee | ||
Comment 11•11 years ago
|
||
Ehsan: good catch!
The original code ignores USE_DEBUG_RTL in optimized builds (if
BUILD_OPT is set). I decided to drop that behavior to simplify
the new code.
Attachment #8468195 -
Attachment is obsolete: true
Attachment #8469736 -
Flags: review?(ehsan)
Flags: needinfo?(ehsan)
Reporter | ||
Comment 12•11 years ago
|
||
Comment on attachment 8469736 [details] [diff] [review]
NSS: add the USE_STATIC_RTL makefile variable, v2
Review of attachment 8469736 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great, thanks!
Attachment #8469736 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(ehsan)
Assignee | ||
Comment 13•11 years ago
|
||
Comment on attachment 8469736 [details] [diff] [review]
NSS: add the USE_STATIC_RTL makefile variable, v2
NSS patch checked in: https://hg.mozilla.org/projects/nss/rev/2f2088ed8a3b
Attachment #8469736 -
Flags: checked-in+
Reporter | ||
Comment 14•11 years ago
|
||
NSPR patch on inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/c5594b478826
Keywords: leave-open
Reporter | ||
Comment 15•11 years ago
|
||
Ted, or Wan-Teh, can one of you please tag the NSS revision 2f2088ed8a3b as NSS_3_17_BETA3 so that I can land this on inbound? Thanks!
Flags: needinfo?(wtc)
Flags: needinfo?(ted)
Assignee | ||
Comment 16•11 years ago
|
||
Ehsan: in the future please don't create NSPR or NSS tags yourself because
you may not know our release plan.
We are likely to create the NSPR_4_10_7_RTM and NSS_3_17_RTM tags tomorrow.
When they are tagged, I will push them to mozilla-inbound for you!
Flags: needinfo?(wtc)
Reporter | ||
Comment 17•11 years ago
|
||
Oh, OK, thanks! FWIW I don't think I have commit access to either NSPR or NSS. :-) But Ted created the NSPR tag earlier today. Sorry if that stepped on your toes, I asked Ted to do that...
Flags: needinfo?(ted)
Comment 18•11 years ago
|
||
Reporter | ||
Comment 19•11 years ago
|
||
ping?
Assignee | ||
Comment 20•11 years ago
|
||
Ehsan: I'm sorry I forgot to update this bug.
The NSS patch landed in mozilla-central last Wednesday as part of
the NSS_3_17_RTM update:
http://hg.mozilla.org/mozilla-central/rev/32ac8061e886
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.10.7
Reporter | ||
Comment 21•11 years ago
|
||
Awesome, thanks so much for your help, Wan-Teh!
Comment 22•7 years ago
|
||
Removing leave-open keyword from resolved bugs, per :sylvestre.
Keywords: leave-open
You need to log in
before you can comment on or make changes to this bug.
Description
•