This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is this supposed to work, or am I loopy?
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: Is this supposed to work, or am I loopy?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 05 Jan 2001 17:38:13 -0200
- Cc: Nick Clifton <nickc at redhat dot com>, gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200101051814.KAA01760@elmo.cygnus.com><20010105132747.A13283@disaster.jaj.com>
On Jan 5, 2001, Phil Edwards <pedwards@disaster.jaj.com> wrote:
> A user brought (2) to my attention ("gcc takes -R under everything else,
> gcc doesn't take -R under linux, ergo linux is broken") and I wanted to
> test it with the current sources.
-R is not portable at all. If one thinks it works under ``everything
else'', that must be a very narrow definition of ``everything else''.
I really appreciate GCC not making it that simple for someone to use
-R, given that (i) it might encourage one to think it's portable and
(ii) hard-coding library search paths in binaries isn't always a good
thing.
If you want something really portable, use libtool's -rpath, which is
as portable as it gets.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me