egcs-1.1.2 default "RPATH", how ?
Jacek M. Holeczek
holeczek@us.edu.pl
Thu Mar 18 01:20:00 GMT 1999
Hi,
I recently downloaded the newest egcs-1.1.2. I configured it with a
--prefix. Now everything, including the libstdc++ library, is placed in my
/opt/... subdirectory. This works, but I have met the problem that the g++
compiler ( I should say linker ) does not set the default RPATH and, as a
result, the dynamic linker does not find the libstdc++. Then the user MUST
set the LD_LIBRARY_PATH to point to /opt/.../lib. I don't want to set the
LD_LIBRARY_PATH, as this may "fool" other programs that will find the
/opt/.../lib/libstdc++* instead of "system default" libstdc++* ( usually
in /usr/lib ). Only executables that are compiled/linked by the egcs
should see these libraries ( and for them they should be the "default"
ones ). One solution would be to add the -rpath, and maybe even
-rpath-link during linking g++ executables, but I would like NOT to do it.
It requires me to know the exact place where the compiler keeps it's
libraries ( for example, if I configure egcs with the option
--enable-version-specific-runtime-libs, the libstdc++ is "hidden" deep in
the /opt/.../lib/gcc-lib/i386-pc-linux-gnu/egcs-2.91.66 subdirectory ).
Here comes my question : is there a way to configure the egcs-1.1.2 so
that it sets automatically it's own default "RPATH" which points to the
place where it's own libstdc++ is located ( needed probably only by the
g++ "linker" ) ?
Thanks in advance,
Jacek.
P.S. Please answer directly to me, I'm not on your list. Thanks in
advance, Jacek.
More information about the Gcc
mailing list