From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12645 invoked by alias); 2 May 2004 23:42:42 -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 12636 invoked from network); 2 May 2004 23:42:41 -0000 Received: from unknown (HELO hermes.fachschaften.tu-muenchen.de) (129.187.202.12) by sources.redhat.com with SMTP; 2 May 2004 23:42:41 -0000 Received: (qmail 14259 invoked from network); 2 May 2004 23:40:06 -0000 Received: from mimas.fachschaften.tu-muenchen.de (129.187.202.58) by hermes.fachschaften.tu-muenchen.de with QMQP; 2 May 2004 23:40:06 -0000 Date: Sun, 02 May 2004 23:42:00 -0000 From: Adrian Bunk To: llewelly@xmission.com Cc: gcc-help@gcc.gnu.org Subject: Re: How to build an RPATH into gcc? Message-ID: <20040502234237.GB27656@fs.tum.de> References: <20040502125641.GY2541@fs.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-SW-Source: 2004-05/txt/msg00012.txt.bz2 On Sun, May 02, 2004 at 05:35:28PM -0600, llewelly@xmission.com wrote: > 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, Can I link only libintl and libiconv (but not libc) statically? If yes, how? > (1) use LD_LIBRARY_PATH, That's what I want to avoid, e.g. because this sometimes makes it non-trivial to compile other software. > (2) Read the netbsd docs looking for some equivalent of ldconfig. This would require root privileges I don't have on the machines in question. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed