[beast: 1/23] BSE: libtool >= 1.5.2 doesn't always set rpath, requiring ldconfig



commit 884fad257a4e1414b09983f6f2f1439757981d1a
Author: Tim Janik <timj gnu org>
Date:   Sun Oct 4 23:12:27 2015 +0200

    BSE: libtool >= 1.5.2 doesn't always set rpath, requiring ldconfig
    
    Libtool 1.5.2 (released 2004-01-25), doesn't set RPATH for any
    directories in the dynamic linker search path. So when installing
    shared libraries into e.g. /usr/local/lib, ldconfig(8) needs to
    be run on linux after installation. See also:
            https://wiki.debian.org/RpathIssue

 bse/Makefile.am |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/bse/Makefile.am b/bse/Makefile.am
index c0e3086..05eb46d 100644
--- a/bse/Makefile.am
+++ b/bse/Makefile.am
@@ -159,6 +159,10 @@ GLIB_MKENUMS = glib-mkenums
 SFIDL = $(top_builddir)/sfi/sfidl
 SFIDL_INC = --nostdinc -I$(top_builddir) -I$(top_srcdir) -I$(srcdir)
 
+install-exec-ldconfig: # libtool >= 1.5.2 doesn't always set rpath, requiring ldconfig
+       test `id -u` != 0 -o ! -x /sbin/ldconfig || /sbin/ldconfig $(DESTDIR)$(libdir)
+install-exec-hook: install-exec-ldconfig
+
 #
 # rules to generate built sources
 #


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]