summaryrefslogtreecommitdiff
path: root/xmlsecurity/Library_xsec_xmlsec.mk
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-05-31 12:14:00 +0200
committerMichael Stahl <mstahl@redhat.com>2017-05-31 12:15:16 +0200
commit4101e437564727af3dc5d61915b7bf6775f72d82 (patch)
tree8e5a8fcf6034c499e8b372bbc5e17d6d4d10b4e3 /xmlsecurity/Library_xsec_xmlsec.mk
parent42ecf7b5f62ed4faabdce80722d1d3f43ca4fb9a (diff)
xmlsecurity: try to appease --as-needed default ld
Change-Id: I11a7894cb71732e613ae430c128ce06becb4defb
Diffstat (limited to 'xmlsecurity/Library_xsec_xmlsec.mk')
-rw-r--r--xmlsecurity/Library_xsec_xmlsec.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmlsecurity/Library_xsec_xmlsec.mk b/xmlsecurity/Library_xsec_xmlsec.mk
index db161c13995f..01619188424b 100644
--- a/xmlsecurity/Library_xsec_xmlsec.mk
+++ b/xmlsecurity/Library_xsec_xmlsec.mk
@@ -51,7 +51,6 @@ $(eval $(call gb_Library_use_packages,xsec_xmlsec,\
$(eval $(call gb_Library_use_externals,xsec_xmlsec,\
boost_headers \
libxml2 \
- nss3 \
))
$(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
@@ -76,7 +75,6 @@ $(eval $(call gb_Library_add_defs,xsec_xmlsec,\
-DXMLSEC_CRYPTO_MSCRYPTO \
))
-
$(eval $(call gb_Library_add_libs,xsec_xmlsec,\
$(call gb_UnpackedTarball_get_dir,xmlsec)/win32/binaries/libxmlsec-mscrypto.lib \
$(call gb_UnpackedTarball_get_dir,xmlsec)/win32/binaries/libxmlsec.lib \
@@ -133,6 +131,11 @@ $(eval $(call gb_Library_add_exception_objects,xsec_xmlsec,\
endif
+# nss3 after static libs to appease --as-needed linkers
+$(eval $(call gb_Library_use_externals,xsec_xmlsec,\
+ nss3 \
+))
+
ifeq ($(OS),SOLARIS)
$(eval $(call gb_Library_add_libs,xsec_xmlsec,\
-ldl \