summaryrefslogtreecommitdiff
path: root/nss/lib/ssl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nss/lib/ssl/Makefile')
-rw-r--r--nss/lib/ssl/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/nss/lib/ssl/Makefile b/nss/lib/ssl/Makefile
index d56cbf2..24fccc5 100644
--- a/nss/lib/ssl/Makefile
+++ b/nss/lib/ssl/Makefile
@@ -18,8 +18,8 @@ include $(CORE_DEPTH)/coreconf/config.mk
#######################################################################
# (3) Include "component" configuration information. (OPTIONAL) #
-#######################################################################
-
+######################################################################
+#
#######################################################################
@@ -39,6 +39,13 @@ CSRCS += unix_err.c
endif
endif
+# Enable key logging by default in debug builds, but not opt builds.
+# Logging still needs to be enabled at runtime through env vars.
+NSS_ALLOW_SSLKEYLOGFILE ?= $(if $(BUILD_OPT),0,1)
+ifeq (1,$(NSS_ALLOW_SSLKEYLOGFILE))
+DEFINES += -DNSS_ALLOW_SSLKEYLOGFILE=1
+endif
+
#######################################################################
# (5) Execute "global" rules. (OPTIONAL) #
#######################################################################
@@ -56,8 +63,3 @@ include $(CORE_DEPTH)/coreconf/rules.mk
#######################################################################
export:: private_export
-
-ifndef NSS_NO_PKCS11_BYPASS
-# indicates dependency on freebl static lib
-$(SHARED_LIBRARY): $(CRYPTOLIB)
-endif