Skip to content

Commit

Permalink
reordered libraries for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgreer%netscape.com committed May 15, 2000
1 parent 0e34389 commit 7812e4f
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions security/nss/cmd/platlibs.mk
Expand Up @@ -35,6 +35,13 @@
ifeq ($(OS_ARCH), WINNT)

# $(PROGRAM) has explicit dependencies on $(EXTRA_LIBS)
ifdef MOZILLA_SECURITY_BUILD
CRYPTOLIB=$(DIST)/lib/crypto.lib
endif
ifdef MOZILLA_BSAFE_BUILD
CRYPTOLIB=$(DIST)/lib/bsafe41.lib
endif

EXTRA_LIBS += \
$(DIST)/lib/ssl.lib \
$(DIST)/lib/jar.lib \
Expand All @@ -49,6 +56,7 @@ EXTRA_LIBS += \
$(DIST)/lib/certdb.lib \
$(DIST)/lib/softoken.lib \
$(DIST)/lib/freebl.lib \
$(CRYPTOLIB) \
$(DIST)/lib/swfci.lib \
$(DIST)/lib/secutil.lib \
$(DIST)/lib/dbm.lib \
Expand All @@ -57,16 +65,6 @@ EXTRA_LIBS += \
$(DIST)/lib/$(NSPR31_LIB_PREFIX)nspr4.lib \
$(NULL)

ifdef MOZILLA_SECURITY_BUILD
EXTRA_LIBS += $(DIST)/lib/crypto.lib
endif
ifdef MOZILLA_BSAFE_BUILD
EXTRA_LIBS += \
$(DIST)/lib/bsafe41.lib \
$(DIST)/lib/freebl.lib \
$(NULL)
endif

# $(PROGRAM) has NO explicit dependencies on $(OS_LIBS)
OS_LIBS += \
wsock32.lib \
Expand All @@ -75,6 +73,12 @@ OS_LIBS += \
else

# $(PROGRAM) has explicit dependencies on $(EXTRA_LIBS)
ifdef MOZILLA_SECURITY_BUILD
CRYPTOLIB=$(DIST)/lib/libcrypto.a
endif
ifdef MOZILLA_BSAFE_BUILD
CRYPTOLIB=$(DIST)/lib/libbsafe.a
endif
EXTRA_LIBS += \
$(DIST)/lib/libssl.a \
$(DIST)/lib/libjar.a \
Expand All @@ -92,20 +96,11 @@ EXTRA_LIBS += \
$(DIST)/lib/libcertdb.a \
$(DIST)/lib/libswfci.a \
$(DIST)/lib/libfreebl.a \
$(CRYPTOLIB) \
$(DIST)/lib/libsecutil.a \
$(DIST)/lib/libdbm.a \
$(NULL)

ifdef MOZILLA_SECURITY_BUILD
EXTRA_LIBS += $(DIST)/lib/libcrypto.a
endif
ifdef MOZILLA_BSAFE_BUILD
EXTRA_LIBS += \
$(DIST)/lib/libbsafe.a \
$(DIST)/lib/libfreebl.a \
$(NULL)
endif

# $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS)
# $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX.
EXTRA_SHARED_LIBS += \
Expand Down

0 comments on commit 7812e4f

Please sign in to comment.