From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13157 invoked by alias); 13 Dec 2007 15:02:03 -0000 Received: (qmail 13143 invoked by uid 22791); 13 Dec 2007 15:02:02 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 13 Dec 2007 15:01:58 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id lBDF1uYq006687 for ; Thu, 13 Dec 2007 10:01:56 -0500 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lBDF1tWa004042; Thu, 13 Dec 2007 10:01:55 -0500 Received: from localhost.localdomain (vpn-6-5.fab.redhat.com [10.33.6.5]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lBDF1sbP018394; Thu, 13 Dec 2007 10:01:54 -0500 Message-ID: <47614961.5090901@redhat.com> Date: Thu, 13 Dec 2007 15:02:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Andrew Cagney CC: frysk Subject: Re: enabling shared builds References: <476146B5.7020606@redhat.com> In-Reply-To: <476146B5.7020606@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00220.txt.bz2 Andrew Cagney wrote: > There are several ways to address this; and before making this change > I think we should consider our options: > > - wire build RPATH into binaries > Doesn't work: the installed binary could load incorrect build-tree > solibs and vice versa yuck. > > - rely on the developers to provide the path explicitly: > LD_LIBRARY_PATH= ./frysk-core/frysk/bindir/fhpd > (chance of us getting that right? 0 :-) ugh > > - provide a wrapper script that sets the environment vis: > ./BuildTree ./frysk-core/frysk/bindir/fhpd Feasible, but a binary should just "work" without lots of wrappers. > > - have 'TestRunner' export LD_LIBRARY_PATH before invoking any utilities Don't like. > > - create two versions of the binary; one for build-tree and one for > install tree > Don't like. > - switch to install-tree testing > Would mean breaking configure convention and set --prefix=. On the > other hand it would mean only testing one way. IMO should be install tree testing anyway, as it simulates the environment when Frysk is deployed much more accurately. +1 for this way, Regards Phil