Skip to content
Snippets Groups Projects
Commit 136ff539 authored by deuce's avatar deuce
Browse files

Statically link libcl and libmozjs185 when using the included sources.

parent e16381d8
Branches
Tags
No related merge requests found
...@@ -32,8 +32,8 @@ ifeq ($(os),linux) ...@@ -32,8 +32,8 @@ ifeq ($(os),linux)
NSPR_LIBS += -ldl NSPR_LIBS += -ldl
endif endif
NSPR_LDFLAGS += -L/usr/local/lib -L$(NSPRDIR) -lnspr4 NSPR_LDFLAGS += -L/usr/local/lib -L$(NSPRDIR)
NSPR_LIBS += -lnspr4
################ ################
# Common stuff # # Common stuff #
...@@ -82,11 +82,13 @@ ifdef JS_NOBUILD ...@@ -82,11 +82,13 @@ ifdef JS_NOBUILD
JSLIB := mozjs185 JSLIB := mozjs185
endif endif
JS_DEPS := JS_DEPS :=
JS_LIBS += -l$(JSLIB)
else else
JSINCLUDE := $(JS_IDIR)$(DIRSEP)include/js JSINCLUDE := $(JS_IDIR)$(DIRSEP)include/js
JSLIBDIR := $(JS_IDIR)$(DIRSEP)lib JSLIBDIR := $(JS_IDIR)$(DIRSEP)lib
JSLIB := mozjs185 JSLIB := mozjs185
JS_DEPS := js JS_DEPS := js
JS_LIBS += $(JSLIBDIR)$(DIRSEP)libmozjs185-1.0.a
endif endif
# Put it all together... # Put it all together...
...@@ -97,7 +99,6 @@ endif ...@@ -97,7 +99,6 @@ endif
ifdef JSLIBDIR ifdef JSLIBDIR
JS_LDFLAGS += -L$(JSLIBDIR) JS_LDFLAGS += -L$(JSLIBDIR)
endif endif
JS_LIBS += -l$(JSLIB)
################## ##################
# Cryptlib Stuff # # Cryptlib Stuff #
...@@ -116,10 +117,12 @@ ifdef CRYPTLIB_NOBUILD ...@@ -116,10 +117,12 @@ ifdef CRYPTLIB_NOBUILD
# Cryptlib specified on build line # # Cryptlib specified on build line #
#################################### ####################################
CRYPT_DEPS := CRYPT_DEPS :=
#else CRYPT_LIBS += -lcl
else
CRYPTLIBINCLUDE := $(CRYPT_IDIR) CRYPTLIBINCLUDE := $(CRYPT_IDIR)
CRYPTLIBDIR := $(CRYPT_IDIR) CRYPTLIBDIR := $(CRYPT_IDIR)
CRYPT_DEPS := cl CRYPT_DEPS := cl
CRYPT_LIBS += $(CRYPT_IDIR)/libcl.a
endif endif
# Put it all together... # Put it all together...
...@@ -130,5 +133,4 @@ endif ...@@ -130,5 +133,4 @@ endif
ifdef CRYPTLIBDIR ifdef CRYPTLIBDIR
CRYPT_LDFLAGS += -L$(CRYPTLIBDIR) CRYPT_LDFLAGS += -L$(CRYPTLIBDIR)
endif endif
CRYPT_LIBS += -lcl
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment