From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26988 invoked by alias); 14 Sep 2004 20:09:34 -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 26943 invoked from network); 14 Sep 2004 20:09:33 -0000 Received: from unknown (HELO mailhost.cas.org) (134.243.50.9) by sourceware.org with SMTP; 14 Sep 2004 20:09:33 -0000 Received: from cas.org (pmd25awu [134.243.216.44]) by mailhost.cas.org (8.12.10/8.12.10/CAS_MAIL_HUB-4.6.1) with ESMTP id i8EK9Wwl004606 for ; Tue, 14 Sep 2004 16:09:32 -0400 (EDT) (envelope-from pdubuc@cas.org) Message-ID: <41474FFB.6000606@cas.org> Date: Tue, 14 Sep 2004 20:09:00 -0000 From: Paul Dubuc Organization: Chemical Abstracts Service (CAS) User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 MIME-Version: 1.0 Newsgroups: gnu.gcc.help,gnu.g++.help To: gcc-help@gcc.gnu.org Subject: Re: gcc can't find libgcc_s.so.1 References: <4141EBB3.5010909@cas.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg00135.txt.bz2 Paul Dubuc wrote: > I'm having trouble building gcc (3.3.4 on Solaris 8 Sparc) so that it > doesn't need the location of libgcc_s.so.1 in LD_LIBRARY_PATH. I > thought I could do this in the bootstrap step by saying > > gmake LDFLAGS="-Wl,--rpath -Wl,${GCCRUNLIBDIR}" bootstrap > > or > > gmake LDFLAGS="-R${GCCRUNLIBDIR}" bootstrap > > this has worked in the past when libstdc++.so developed a dependency on > this library: ... > > > This wasn't the case in 3.3.1 > How do I run gmake bootstrap to get the RPATH into the executable so I > don't get > > ld.so.1: ./g++: fatal: libgcc_s.so.1: open failed: No such file or > directory > Killed > > when I run the compiler and so I don't have to set LD_LIBRARY_PATH? I think I've figured it out. For any one else who might be interested, set BOOT_LDFLAGS to the same value as LDFLAGS: gmake \ LDFLAGS="-Wl,--rpath -Wl,${GCCRUNLIBDIR}" \ BOOT_LDFLAGS="-Wl,--rpath -Wl,${GCCRUNLIBDIR}" \ bootstrap