config.mk (1668B)
1 # 2 # This Source Code Form is subject to the terms of the Mozilla Public 3 # License, v. 2.0. If a copy of the MPL was not distributed with this 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 5 6 # 7 # Override TARGETS variable so that only static libraries 8 # are specifed as dependencies within rules.mk. 9 # 10 11 # can't do this in manifest.mn because OS_TARGET isn't defined there. 12 ifeq (,$(filter-out WIN%,$(OS_TARGET))) 13 14 ifdef NS_USE_GCC 15 EXTRA_SHARED_LIBS += \ 16 -L$(DIST)/lib \ 17 -L$(NSSUTIL_LIB_DIR) \ 18 -lnssutil3 \ 19 -L$(NSPR_LIB_DIR) \ 20 -lplc4 \ 21 -lplds4 \ 22 -lnspr4\ 23 $(NULL) 24 else # ! NS_USE_GCC 25 EXTRA_SHARED_LIBS += \ 26 $(DIST)/lib/nssutil3.lib \ 27 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \ 28 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \ 29 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \ 30 $(NULL) 31 endif # NS_USE_GCC 32 33 else 34 35 # $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS) 36 # $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX. 37 EXTRA_SHARED_LIBS += \ 38 -L$(DIST)/lib \ 39 -L$(NSSUTIL_LIB_DIR) \ 40 -lnssutil3 \ 41 -L$(NSPR_LIB_DIR) \ 42 -lplc4 \ 43 -lplds4 \ 44 -lnspr4 \ 45 $(NULL) 46 47 endif 48 49 50 # $(PROGRAM) has explicit dependencies on $(EXTRA_LIBS) 51 52 ifeq ($(OS_TARGET),SunOS) 53 ifeq ($(BUILD_SUN_PKG), 1) 54 # The -R '$ORIGIN' linker option instructs this library to search for its 55 # dependencies in the same directory where it resides. 56 ifeq ($(USE_64), 1) 57 MKSHLIB += -R '$$ORIGIN:/usr/lib/mps/secv1/64:/usr/lib/mps/64' 58 else 59 MKSHLIB += -R '$$ORIGIN:/usr/lib/mps/secv1:/usr/lib/mps' 60 endif 61 else 62 MKSHLIB += -R '$$ORIGIN' 63 endif 64 endif 65 66 ifeq ($(OS_ARCH), HP-UX) 67 ifneq ($(OS_TEST), ia64) 68 # pa-risc 69 ifeq ($(USE_64), 1) 70 MKSHLIB += +b '$$ORIGIN' 71 endif 72 endif 73 endif