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