From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5085 invoked by alias); 19 Dec 2012 23:57:35 -0000 Received: (qmail 5077 invoked by uid 22791); 19 Dec 2012 23:57:34 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_VIA_APNIC X-Spam-Check-By: sourceware.org Received: from comm.purplecow.org (HELO comm.purplecow.org) (210.87.62.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Dec 2012 23:57:30 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-disposition: inline Content-type: text/plain; charset=us-ascii Received: from comm.purplecow.org ([127.0.0.1]) by comm.purplecow.org (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTP id <0MFA00JZKYJS7R10@comm.purplecow.org> for gcc-help@gcc.gnu.org; Thu, 20 Dec 2012 10:57:28 +1100 (EST) Received: from comm.purplecow.org ([127.0.0.1] helo=comm.purplecow.org) with IPv4:25 by ASSP.nospam; Thu, 20 Dec 2012 10:57:28 +1100 Received: from [66.103.52.207] by comm.purplecow.org (mshttpd); Wed, 19 Dec 2012 18:57:28 -0500 From: Dennis Clarke To: Jim Rice Cc: gcc-help@gcc.gnu.org Message-id: Date: Wed, 19 Dec 2012 23:57:00 -0000 Subject: Re: A question about RPATH In-reply-to: <1355959256.52229.YahooMailClassic@web160504.mail.bf1.yahoo.com> References: <1355959256.52229.YahooMailClassic@web160504.mail.bf1.yahoo.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg00101.txt.bz2 > crle ? > > crle -64 -c /var/ld/64/ld.config -l /lib/64:/usr/lib/64:/usr/local/lib That would also be the wrong way to go here. One need not change the system config in order to run a binary. The binary should indicate the preferred path to search for libraries within it .. not outside of it. LD_LIBRARY_PATH defeats and wrecks that. So really the only sane option here is -Wl,--rpath=/usr/local/lib Or similar. dc