mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
bug 1243349 - fix NSPR link paths for NSS. r=glandium
--HG-- extra : commitid : 7MNlvrCCE6W extra : rebase_source : a2919eef6b02edc31682ba1a9a12f66b19b66814 extra : amend_source : 394e2b0a5f7e3fb89ffc88f12a186628745b202b
This commit is contained in:
parent
f495cf4f15
commit
c2b6bb1e3b
@ -159,8 +159,9 @@ if test -n "$MOZ_NATIVE_NSPR" -o -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
|
||||
elif test -z "$JS_POSIX_NSPR"; then
|
||||
NSPR_CFLAGS="-I${DIST}/include/nspr"
|
||||
if test -n "$GNU_CC"; then
|
||||
NSPR_LIBS="-L${DIST}/lib -lnspr${NSPR_VERSION} -lplc${NSPR_VERSION} -lplds${NSPR_VERSION}"
|
||||
NSPR_LIBS="-L${DIST}/bin -lnspr${NSPR_VERSION} -lplc${NSPR_VERSION} -lplds${NSPR_VERSION}"
|
||||
else
|
||||
# NSS needs actual static libs to link to, and this is where they are.
|
||||
NSPR_LIBS="${DIST}/lib/nspr${NSPR_VERSION}.lib ${DIST}/lib/plc${NSPR_VERSION}.lib ${DIST}/lib/plds${NSPR_VERSION}.lib "
|
||||
fi
|
||||
fi
|
||||
|
9
config/external/nss/Makefile.in
vendored
9
config/external/nss/Makefile.in
vendored
@ -87,17 +87,22 @@ endif
|
||||
|
||||
# For all variables such as DLLFLAGS, that may contain $(DIST)
|
||||
DIST := $(ABS_DIST)
|
||||
ifdef MOZ_BUILD_NSPR
|
||||
NSPR_INCLUDE_DIR = $(ABS_DIST)/include/nspr
|
||||
NSPR_LIB_DIR = $(ABS_DIST)/bin
|
||||
else
|
||||
NSPR_INCLUDE_DIR = $(firstword $(filter -I%,$(NSPR_CFLAGS)))
|
||||
ifneq (,$(strip $(NSPR_INCLUDE_DIR)))
|
||||
NSPR_INCLUDE_DIR := $(subst -I,,$(subst -I$(DIST),-I$(ABS_DIST),$(NSPR_INCLUDE_DIR)))
|
||||
else
|
||||
NSPR_INCLUDE_DIR = $(ABS_DIST)/include/nspr
|
||||
$(error Your NSPR CFLAGS are broken!)
|
||||
endif
|
||||
NSPR_LIB_DIR = $(firstword $(filter -L%,$(NSPR_LIBS)))
|
||||
ifneq (,$(strip $(NSPR_LIB_DIR)))
|
||||
NSPR_LIB_DIR := $(subst -L,,$(subst -L$(DIST),-L$(ABS_DIST),$(NSPR_LIB_DIR)))
|
||||
else
|
||||
NSPR_LIB_DIR = $(ABS_DIST)/lib
|
||||
$(error Your NSPR LDFLAGS are broken!)
|
||||
endif
|
||||
endif
|
||||
|
||||
# To get debug symbols from NSS
|
||||
|
Loading…
Reference in New Issue
Block a user