This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Is this supposed to work, or am I loopy?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]