From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10717 invoked by alias); 2 May 2004 23:35:30 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 10709 invoked from network); 2 May 2004 23:35:29 -0000 Received: from unknown (HELO mgr2.xmission.com) (198.60.22.202) by sources.redhat.com with SMTP; 2 May 2004 23:35:29 -0000 Received: from [198.60.22.201] (helo=mgr1.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 1BKQUa-0005mv-02; Sun, 02 May 2004 17:35:28 -0600 Received: from [198.60.22.20] (helo=xmission.xmission.com) by mgr1.xmission.com with esmtp (Exim 4.30) id 1BKQUa-0002XW-RG; Sun, 02 May 2004 17:35:28 -0600 Received: from llewelly by xmission.xmission.com with local (Exim 3.35 #1 (Debian)) id 1BKQUa-0006EO-00; Sun, 02 May 2004 17:35:28 -0600 To: Adrian Bunk Cc: gcc-help@gcc.gnu.org References: <20040502125641.GY2541@fs.tum.de> From: llewelly@xmission.com Date: Sun, 02 May 2004 23:35:00 -0000 In-Reply-To: <20040502125641.GY2541@fs.tum.de> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Subject: Re: How to build an RPATH into gcc? Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mgr1.xmission.com X-Spam-Level: X-Spam-Status: No, hits=0.3 required=8.0 tests=NO_REAL_NAME autolearn=no version=2.63 X-SA-Exim-Mail-From: llewelly@xmission.com X-SA-Exim-Version: 3.1 (built Wed Aug 20 09:38:54 PDT 2003) X-SA-Exim-Scanned: Yes X-SW-Source: 2004-05/txt/msg00011.txt.bz2 Adrian Bunk writes: > Hi, > > if the following problem is a RTFM, I'd be glad if someone could give me > a pointer to the corresponting "M".... > > I have the following problem when building gcc 3.3.3 or 3.4.0 on a > sparc-unknown-netbsdelf1.5 system: > > The build works fine, using > ../configure > make bootstrap > but the binary doesn't run: > > <-- snip --> > > $ ./gcc > Shared object "libintl.so.5" not found > $ objdump -p gcc > ... > Dynamic Section: > NEEDED libintl.so.5 > NEEDED libiconv.so.4 > NEEDED libc.so.12 > INIT 0x10de0 > ... > > <-- snip --> > > libintl and libiconv are in /usr/local/lib. > > LDFLAGS="-L/usr/local/lib -R/usr/local/lib" ../configure > didn't work > > LD_LIBRARY_PATH=/usr/local/lib ./gcc > works but isn't optimal. > > It might be very simple, but I don't find the solution myself... [snip] You have 3 alternatives; (0) build gcc staticly linked, (1) use LD_LIBRARY_PATH, (2) Read the netbsd docs looking for some equivalent of ldconfig.