Closed
Bug 1083572
Opened 10 years ago
Closed 10 years ago
Enable passing external LDFLAGS to the NSS build system for Windows ASAN builds
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla36
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file, 1 obsolete file)
1.05 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Updated•10 years ago
|
Attachment #8505864 -
Flags: review?(mh+mozilla)
Comment 2•10 years ago
|
||
Comment on attachment 8505864 [details] [diff] [review]
Enable passing external LDFLAGS to the NSS build system for Windows ASAN builds
Review of attachment 8505864 [details] [diff] [review]:
-----------------------------------------------------------------
::: configure.in
@@ +936,5 @@
>
> AC_PATH_XTRA
>
> XCFLAGS="$X_CFLAGS"
> +EXTERNAL_LDFLAGS="$LDFLAGS"
What is the difference in value between OS_LDFLAGS and EXTERNAL_LDFLAGS in objdir/config/autoconf.mk?
Assignee | ||
Updated•10 years ago
|
Attachment #8505864 -
Attachment is obsolete: true
Attachment #8505864 -
Flags: review?(mh+mozilla)
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8506157 -
Flags: review?(mh+mozilla)
Updated•10 years ago
|
Attachment #8506157 -
Flags: review?(mh+mozilla) → review+
Comment 4•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Assignee | ||
Comment 5•10 years ago
|
||
Actually, it turns out that I was right originally:
$ cd objdir/config/external/nss
$ mozmake echo-variable-OS_LDFLAGS
clang_rt.asan_dynamic-i386.lib clang_rt.asan_dynamic_runtime_thunk-i386.lib -DYNAMICBASE -DEBUG -DEBUGTYPE:CV -DEF:nss3.def
So, OS_LDFLAGS is unsuitable here.
glandium, should I go back to using EXTERNAL_LDFLAGS?
Status: RESOLVED → REOPENED
Flags: needinfo?(mh+mozilla)
Resolution: FIXED → ---
Comment 6•10 years ago
|
||
Try this:
diff --git a/config/external/nss/Makefile.in b/config/external/nss/Makefile.in
--- a/config/external/nss/Makefile.in
+++ b/config/external/nss/Makefile.in
@@ -239,17 +239,18 @@ endif
ifdef MOZ_NO_WLZDEFS
DEFAULT_GMAKE_FLAGS += ZDEFS_FLAG=
endif
ifdef MOZ_CFLAGS_NSS
DEFAULT_GMAKE_FLAGS += XCFLAGS='$(CFLAGS)'
DEFAULT_GMAKE_FLAGS += DARWIN_DYLIB_VERSIONS='-compatibility_version 1 -current_version 1 $(LDFLAGS)'
endif
ifeq (1_1,$(CLANG_CL)_$(MOZ_ASAN))
-DEFAULT_GMAKE_FLAGS += XLDFLAGS='$(OS_LDFLAGS)'
+XLDFLAGS := $(OS_LDFLAGS)
+DEFAULT_GMAKE_FLAGS += XLDFLAGS='$(XLDFLAGS)'
endif
DEFAULT_GMAKE_FLAGS += NSS_NO_PKCS11_BYPASS=1
# Put NSS headers directly under $(DIST)/include
DEFAULT_GMAKE_FLAGS += PUBLIC_EXPORT_DIR='$(ABS_DIST)/include/$$(MODULE)'
DEFAULT_GMAKE_FLAGS += SOURCE_XPHEADERS_DIR='$$(SOURCE_XP_DIR)/include/$$(MODULE)'
DEFAULT_GMAKE_FLAGS += MODULE_INCLUDES='$$(addprefix -I$$(SOURCE_XP_DIR)/include/,$$(REQUIRES))'
Flags: needinfo?(mh+mozilla)
Assignee | ||
Comment 7•10 years ago
|
||
Wow, that works!
Pushed as: https://hg.mozilla.org/integration/mozilla-inbound/rev/883b62c5b1e1
Comment 8•10 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 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
•