From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: Installing manually built software in Guix Date: Sun, 09 Feb 2014 00:17:43 -0500 Message-ID: <87zjm050g8.fsf@netris.org> References: <874n4apr7j.fsf@netris.org> <878utmlfc8.fsf@gnu.org> <874n486ga1.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCMmw-0008Hw-Fw for guix-devel@gnu.org; Sun, 09 Feb 2014 00:18:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCMmr-0001j4-8i for guix-devel@gnu.org; Sun, 09 Feb 2014 00:18:42 -0500 In-Reply-To: <874n486ga1.fsf@netris.org> (Mark H. Weaver's message of "Sat, 08 Feb 2014 23:50:30 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Mark H Weaver writes: > I guess the problem might be related to an "-rpath /usr/lib" that ends > up in 'relink_command' in guile-readline/libguilereadline-v-18.la: > > # Directory that this library needs to be installed in: > libdir='/usr/lib' > relink_command="(cd /home/mhw/guile/guile-readline; /bin/bash /home/mhw/guile/libtool --silent --tag CC --mode=relink gcc -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wswitch-enum -fno-strict-aliasing -I/nix/store/a9j9bl7m73rhlal9z83z3wbl9m17di4i-libgc-7.4.0/include -g -O2 -version-info 18:0:0 -export-dynamic -no-undefined -o libguilereadline-v-18.la -rpath /usr/lib readline.lo -lreadline -lncurses ../libguile/libguile-2.0.la ../lib/libgnu.la -lcrypt -lm @inst_prefix_dir@)" > > I'm not sure why libtool is putting that rpath in there [...] I have another piece of the puzzle. The first place I see this "-rpath" is in guile-readline/Makefile.in: --8<---------------cut here---------------start------------->8--- @HAVE_READLINE_TRUE@am_libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_rpath = \ @HAVE_READLINE_TRUE@ -rpath $(libdir) --8<---------------cut here---------------end--------------->8--- and later in the same file: --8<---------------cut here---------------start------------->8--- libguilereadline-v-@LIBGUILEREADLINE_MAJOR@.la: $(libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_OBJECTS) $(libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_DEPENDENCIES) $(EXTRA_libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_DEPENDENCIES) $(AM_V_CCLD)$(libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LINK) $(am_libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_rpath) $(libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_OBJECTS) $(libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD) $(LIBS) --8<---------------cut here---------------end--------------->8--- I used the versions of autoconf, automake, libtool, and libtool:bin from recent Guix master when running ./autogen.sh, ./configure, make, etc. Thanks, Mark