public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc and g++  compilation option to add -rpath (not in FAQ)
@ 1999-03-18 13:41 Achim Bohnet
  1999-03-19  0:14 ` Alexandre Oliva
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Achim Bohnet @ 1999-03-18 13:41 UTC (permalink / raw)
  To: egcs

I have the need to add -rpath <egcs-prefix-dir>/lib  everytime the C/C++
frontends invoke the link/loader behind the scene -rpath <egcs-prefix-dir>/lib.

I've checked the FAQ http://egcs.cygnus.com/faq.html#rpath but this does not
help.

The solution to add -rpath to every is error prone and I can't use
LD_LIBRARY_PATH because this would confuse other C++ apps because
the the shared C++ libs are not binary compatible.

They are not binary compatible because I can't use GNU as (not supported
on Digital Unix) and in order too
prevent 'Line too long' errors of the Digital Unix assembler I had to enable
flag_do_squangling = 1 in gcc/cp/decl2.c as described in
http://egcs.cygnus.com/faq.html#squangle

One solution might be to put a ld wrapper into <egcs-prefix-dir>/bin
that add -rpath ... to the arguments before it invokes the real ld.  But
Hope that there is a way to specify it during configure/bootstrap
time so I don't have to cheat.

A second solution would be to not use shared libs but this would be
really pity :-)

Thanks in advance for any advise,
Achim

--
If you life in the Europian Union and you don't like spam then
support the petition:
    Vote against Spam! http://www.politik-digital.de/spam/

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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-18 13:41 gcc and g++ compilation option to add -rpath (not in FAQ) Achim Bohnet
1999-03-19  0:14 ` Alexandre Oliva
     [not found]   ` < oroglpx5mw.fsf@dcc.unicamp.br >
1999-03-21 10:07     ` Gerald Pfeifer
1999-03-24  0:27       ` Alexandre Oliva
1999-03-31 23:46         ` Alexandre Oliva
1999-03-31 23:46       ` Gerald Pfeifer
1999-03-31 23:46   ` Alexandre Oliva
     [not found] ` < 199903182141.WAA04071@o06.xray.mpe.mpg.de >
1999-03-19  1:04   ` Martin v. Loewis
1999-03-31 23:46     ` Martin v. Loewis
1999-03-31 23:46 ` Achim Bohnet

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).