summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2020-02-19 00:09:16 +0530
committerArun Isaac2020-02-19 00:09:16 +0530
commit7a7cad81e7ac6cad0c4cf8df61d174475282ec60 (patch)
treea3b4573088c22f1872ff2278a6729c71beef1aac
parent8e6a5dacbcd373f6e68c3adf0b13837c49593cab (diff)
downloadguile-xapian-7a7cad81e7ac6cad0c4cf8df61d174475282ec60.tar.gz
guile-xapian-7a7cad81e7ac6cad0c4cf8df61d174475282ec60.tar.lz
guile-xapian-7a7cad81e7ac6cad0c4cf8df61d174475282ec60.zip
Load libguilexapian without any specific path.
* pre-inst-env.in (LD_LIBRARY_PATH): Set LD_LIBRARY_PATH. * xapian.i: Load libguilexapian without any specific path. Let it be found using LD_LIBRARY_PATH and other search mechanisms.
-rw-r--r--pre-inst-env.in3
-rw-r--r--xapian.i2
2 files changed, 3 insertions, 2 deletions
diff --git a/pre-inst-env.in b/pre-inst-env.in
index c0c694f..f15728e 100644
--- a/pre-inst-env.in
+++ b/pre-inst-env.in
@@ -24,6 +24,7 @@ abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd -P`"
GUILE_LOAD_COMPILED_PATH="$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
GUILE_LOAD_PATH="$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
-export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
+LD_LIBRARY_PATH="$abs_top_builddir"
+export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH LD_LIBRARY_PATH
exec "$@"
diff --git a/xapian.i b/xapian.i
index 54f8c0e..9c1a347 100644
--- a/xapian.i
+++ b/xapian.i
@@ -24,7 +24,7 @@
%scheme
%{
-(load-extension "./libguilexapian" "SWIG_init")
+(load-extension "libguilexapian" "SWIG_init")
%}
%include xapian-head.i