This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to build an RPATH into gcc?
- From: Adrian Bunk <bunk at fs dot tum dot de>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 6 May 2004 15:53:30 +0200
- Subject: How to build an RPATH into gcc?
This is a resend of a mail I sent to gcc-help on Sunday, since I still
haven't found a solution.
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 make bootstrap
and later
LD_LIBRARY_PATH=/usr/local/lib /path/to/gcc
works but isn't optimal.
It might be very simple, but I don't find the solution myself...
TIA
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