[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc can't find libgcc_s.so.1
From: |
Paul Dubuc |
Subject: |
Re: gcc can't find libgcc_s.so.1 |
Date: |
Tue, 14 Sep 2004 16:09:31 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 |
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