public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Achim Bohnet <ach@mpe.mpg.de>
To: egcs@egcs.cygnus.com
Subject: gcc and g++  compilation option to add -rpath (not in FAQ)
Date: Wed, 31 Mar 1999 23:46:00 -0000	[thread overview]
Message-ID: <199903182141.WAA04071@o06.xray.mpe.mpg.de> (raw)
Message-ID: <19990331234600.B5bWB5S3-yzohvJz_YIQC0EMk9qzJSeXd3TEI0HnD-k@z> (raw)

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/


             reply	other threads:[~1999-03-31 23:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-18 13:41 Achim Bohnet [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199903182141.WAA04071@o06.xray.mpe.mpg.de \
    --to=ach@mpe.mpg.de \
    --cc=egcs@egcs.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).