public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alexandre Oliva <oliva@dcc.unicamp.br>
To: Amos A Gouaux <amos@utdallas.edu>
Cc: egcs@cygnus.com
Subject: Re: Including -R /usr/local/lib?
Date: Sat, 18 Apr 1998 18:00:00 -0000	[thread overview]
Message-ID: <orlnt2d435.fsf@cuca.lsd.dcc.unicamp.br> (raw)
In-Reply-To: <Pine.GSO.3.96.980418102126.11366B-100000@velcro.utdallas.edu>

Amos A Gouaux <amos@utdallas.edu> writes:

> When using egcs on Solaris 2.6 to compile C++ code, for the
> executable to run one must do the following:

>    $ g++ t.C -R /usr/local/lib

> It seems like the g++ command should know where libstdc++ is, and
> automatically add the `-R /usr/local/lib' business for the user.

This has been discussed to death already, and there was someone
willing to work on a fix (sorry, I don't remember who it was :-(

There are two possible current workarounds:

1) modify the specs file (/usr/local/lib/gcc-lib/*/*/specs) and add -R
to the `*link:' or `*lib:' pattern

2) modify `libstdc++/config/*.ml' and modify the `-h' or `-soname'
switch so that it includes the full pathname of the library.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil


  parent reply	other threads:[~1998-04-18 18:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-18  8:31 Amos A Gouaux
1998-04-18 16:05 ` Martin von Loewis
1998-04-18 18:00 ` Alexandre Oliva [this message]
1998-04-19  8:38   ` Kamil Iskra
1998-04-19  8:15     ` Alexandre Oliva
1998-04-19 18:48   ` Amos A Gouaux
1998-04-19 18:10 ` Joe Buck

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=orlnt2d435.fsf@cuca.lsd.dcc.unicamp.br \
    --to=oliva@dcc.unicamp.br \
    --cc=amos@utdallas.edu \
    --cc=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).