public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* egcs-1.1.2 default "RPATH", how ?
@ 1999-03-18  1:20 Jacek M. Holeczek
       [not found] ` < Pine.GSO.3.96.990318094705.27154A-100000@uranos.cto.us.edu.pl >
  1999-03-31 23:46 ` Jacek M. Holeczek
  0 siblings, 2 replies; 4+ messages in thread
From: Jacek M. Holeczek @ 1999-03-18  1:20 UTC (permalink / raw)
  To: egcs

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: egcs-1.1.2 default "RPATH", how ?
       [not found] ` < Pine.GSO.3.96.990318094705.27154A-100000@uranos.cto.us.edu.pl >
@ 1999-03-18  1:49   ` Jeffrey A Law
  1999-03-31 23:46     ` Jeffrey A Law
  0 siblings, 1 reply; 4+ messages in thread
From: Jeffrey A Law @ 1999-03-18  1:49 UTC (permalink / raw)
  To: Jacek M. Holeczek; +Cc: egcs

  In message < Pine.GSO.3.96.990318094705.27154A-100000@uranos.cto.us.edu.pl >you
 write:
  > /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++.
Read the FAQ.
jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: egcs-1.1.2 default "RPATH", how ?
  1999-03-18  1:49   ` Jeffrey A Law
@ 1999-03-31 23:46     ` Jeffrey A Law
  0 siblings, 0 replies; 4+ messages in thread
From: Jeffrey A Law @ 1999-03-31 23:46 UTC (permalink / raw)
  To: Jacek M. Holeczek; +Cc: egcs

  In message < Pine.GSO.3.96.990318094705.27154A-100000@uranos.cto.us.edu.pl >you
 write:
  > /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++.
Read the FAQ.
jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* egcs-1.1.2 default "RPATH", how ?
  1999-03-18  1:20 egcs-1.1.2 default "RPATH", how ? Jacek M. Holeczek
       [not found] ` < Pine.GSO.3.96.990318094705.27154A-100000@uranos.cto.us.edu.pl >
@ 1999-03-31 23:46 ` Jacek M. Holeczek
  1 sibling, 0 replies; 4+ messages in thread
From: Jacek M. Holeczek @ 1999-03-31 23:46 UTC (permalink / raw)
  To: egcs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-03-31 23:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-18  1:20 egcs-1.1.2 default "RPATH", how ? Jacek M. Holeczek
     [not found] ` < Pine.GSO.3.96.990318094705.27154A-100000@uranos.cto.us.edu.pl >
1999-03-18  1:49   ` Jeffrey A Law
1999-03-31 23:46     ` Jeffrey A Law
1999-03-31 23:46 ` Jacek M. Holeczek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).