aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/xmlsec/lt_dladdsearchdir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/xmlsec/lt_dladdsearchdir.patch')
-rw-r--r--nixpkgs/pkgs/development/libraries/xmlsec/lt_dladdsearchdir.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/xmlsec/lt_dladdsearchdir.patch b/nixpkgs/pkgs/development/libraries/xmlsec/lt_dladdsearchdir.patch
new file mode 100644
index 00000000000..17dedb0d6c8
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/xmlsec/lt_dladdsearchdir.patch
@@ -0,0 +1,16 @@
+diff --git a/src/dl.c b/src/dl.c
+index b13f9d46..d761855b 100644
+--- a/src/dl.c
++++ b/src/dl.c
+@@ -346,6 +346,11 @@ xmlSecCryptoDLInit(void) {
+ xmlSecIOError("lt_dlinit", NULL, NULL);
+ return(-1);
+ }
++ ret = lt_dladdsearchdir("@out@/lib");
++ if(ret != 0) {
++ xmlSecIOError("lt_dladdsearchdir", NULL, NULL);
++ return(-1);
++ }
+ #endif /* XMLSEC_DL_LIBLTDL */
+
+ return(0);