Package: libfsoframework / 0.12.0-5

fix-pkglibdir.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: search modules in multiarch path
 The modules are installed correctly into the multiarch
 path, but the code doesn't look for them in these
 directories. This patch changes the module search path
 to the correct multiarch path.
Author: Sebastian Reichel <sre@debian.org>
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,10 @@
 AC_SUBST(CPPFLAGS)
 AC_SUBST(LDFLAGS)
 
+LIBDIR=`eval echo $libdir`
+LIBDIR=`eval echo $LIBDIR`
+AC_SUBST([LIBDIR])
+
 LT_CURRENT=fsoframework_lt_current
 LT_REVISION=fsoframework_lt_revision
 LT_AGE=fsoframework_lt_age
@@ -116,8 +120,8 @@
 # gather libdir
 #########################################################################################
 
-if test "x$prefix" != "xNONE"; then
-  pkglibdir='${prefix}/lib/cornucopia'
+if test "x$LIBDIR" != "xNONE"; then
+  pkglibdir='${LIBDIR}/cornucopia'
 else
   pkglibdir='/usr/local/lib/cornucopia'
 fi