From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.devel Subject: Re: Relocatable installation Date: Mon, 31 Jan 2011 22:18:28 +0100 Organization: www.JoyOfSource.com Message-ID: <1296508708.17905.47.camel@vuurvlieg> References: <1296330082.8111.371.camel@vuurvlieg> <87lj2375k1.fsf@gnu.org> <1296505613.17905.18.camel@vuurvlieg> <871v3s4wlh.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296508844 5136 80.91.229.12 (31 Jan 2011 21:20:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2011 21:20:44 +0000 (UTC) Cc: guile-devel To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 31 22:20:37 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pk1Ac-0001Aw-2H for guile-devel@m.gmane.org; Mon, 31 Jan 2011 22:20:28 +0100 Original-Received: from localhost ([127.0.0.1]:46853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pk1AT-0001HT-W6 for guile-devel@m.gmane.org; Mon, 31 Jan 2011 16:20:14 -0500 Original-Received: from [140.186.70.92] (port=38625 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pk194-0000Y8-Vm for guile-devel@gnu.org; Mon, 31 Jan 2011 16:19:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pk18n-0004Xt-G7 for guile-devel@gnu.org; Mon, 31 Jan 2011 16:18:30 -0500 Original-Received: from smtp-vbr19.xs4all.nl ([194.109.24.39]:3411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pk18n-0004Xd-5E; Mon, 31 Jan 2011 16:18:29 -0500 Original-Received: from [192.168.1.112] (peder.onsbrabantnet.nl [88.159.206.46] (may be forged)) (authenticated bits=0) by smtp-vbr19.xs4all.nl (8.13.8/8.13.8) with ESMTP id p0VLISP9003724; Mon, 31 Jan 2011 22:18:28 +0100 (CET) (envelope-from janneke@gnu.org) In-Reply-To: <871v3s4wlh.fsf@gnu.org> X-Mailer: Evolution 2.30.3 X-Virus-Scanned: by XS4ALL Virus Scanner X-MIME-Autoconverted: from 8bit to quoted-printable by smtp-vbr19.xs4all.nl id p0VLISP9003724 X-detected-operating-system: by eggs.gnu.org: FreeBSD 4.6-4.9 X-Received-From: 194.109.24.39 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11468 Archived-At: [cc: list] Ludovic Court=C3=A8s schreef op ma 31-01-2011 om 22:00 [+0100]: Hi, > Your patch lacks this RPATH magic, though. Yes, we have that in our GUB cross build system. Possibly this is a thing/feature request for libtool. > Perhaps it should check > whether =E2=80=98-Wl,-rpath=3D'$ORIGIN/../lib'=E2=80=99 works? That would be a nice feature. I expect that if you want to use this, you should know what you're doing anyway... > Is =E2=80=98-Wl,-z -Wl,origin=E2=80=99 > needed as well when linking =E2=80=98guile=E2=80=99? No, we only use -Wl,-rpath -Wl,'$'ORIGIN/../lib We do that by postprocessing libtool, substituting the hardcode_libdir_flag_spec, of course, something like: ([('^(hardcode_libdir_flag_spec)=3D".+"', 'hardcode_libdir_flag_spec=3D= "-Wl,-rpath -Wl,\\$libdir -Wl,-rpath -Wl,\'$\'ORIGIN/../lib -Wl,-rpath -W= l,/home/janneke/vc/gub/target/mingw/root/usr/lib"')], '/home/janneke/vc/g= ub/target/mingw/build/guile-1.9.14/libtool') > Yes, that=E2=80=99s what I meant: it only works as long as users touch = only > $prefix, not $libdir, $bindir, etc. Sure. Dropping a binary package in a random place is a common way to do exactly that. > Then I have nothing against this option, as long as it=E2=80=99s off by= default. Great, thanks! Jan. --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.= nl =20