summaryrefslogtreecommitdiff
path: root/xapian.i.in
diff options
context:
space:
mode:
authorArun Isaac2022-06-20 17:14:52 +0530
committerArun Isaac2022-06-20 17:19:18 +0530
commit9f5add6a0344fcef0611c06a7958031bead835b4 (patch)
treee1d00625247908507fdf1513147f6cd3ff791a9a /xapian.i.in
parente4d94a1622356edab873783646dcc351c03036d5 (diff)
downloadguile-xapian-9f5add6a0344fcef0611c06a7958031bead835b4.tar.gz
guile-xapian-9f5add6a0344fcef0611c06a7958031bead835b4.tar.lz
guile-xapian-9f5add6a0344fcef0611c06a7958031bead835b4.zip
Makefile: Suffix libguilexapian with effective Guile version number.
We need to distinguish between libguilexapian built for different versions of Guile. * Makefile.am (lib_LTLIBRARIES): Replace libguilexapian.la with libguilexapian-@GUILE_EFFECTIVE_VERSION@.la. (libguilexapian_la_SOURCES): Rename to libguilexapian_@GUILE_EFFECTIVE_VERSION@_la_SOURCES. (libguilexapian_la_CXXFLAGS): Rename to libguilexapian_@GUILE_EFFECTIVE_VERSION@_la_CXXFLAGS. (libguilexapian_la_LDFLAGS): Rename to libguilexapian_@GUILE_EFFECTIVE_VERSION@_la_LDFLAGS. (xapian.i): Substitute @GUILE_EFFECTIVE_VERSION@. (xapian/xapian.go): Depend on libguilexapian-@GUILE_EFFECTIVE_VERSION@.la instead of libguilexapian.la. * xapian.i.in: Load libguilexapian-@GUILE_EFFECTIVE_VERSION@.la instead of libguilexapian.la.
Diffstat (limited to 'xapian.i.in')
-rw-r--r--xapian.i.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/xapian.i.in b/xapian.i.in
index 4f36f8e..f1ffe07 100644
--- a/xapian.i.in
+++ b/xapian.i.in
@@ -1,6 +1,6 @@
/* guile-xapian --- Guile bindings for Xapian
* Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
- * Copyright © 2021 Bob131 <bob@bob131.so>
+ * Copyright © 2021, 2022 Bob131 <bob@bob131.so>
*
* This file is part of guile-xapian.
*
@@ -30,9 +30,9 @@
;; so that guile-xapian finds libguilexapian both before and after installation.
(catch #t
(lambda ()
- (load-extension "@libdir@/libguilexapian" "SWIG_init"))
+ (load-extension "@libdir@/libguilexapian-@GUILE_EFFECTIVE_VERSION@" "SWIG_init"))
(lambda _
- (load-extension "libguilexapian" "SWIG_init")))
+ (load-extension "libguilexapian-@GUILE_EFFECTIVE_VERSION@" "SWIG_init")))
%}
%{