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: pedwards at disaster dot jaj dot com (Phil Edwards)
- Subject: Re: Is this supposed to work, or am I loopy?
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Fri, 5 Jan 2001 10:33:44 -0800 (PST)
- Cc: nickc at redhat dot com (Nick Clifton), gcc at gcc dot gnu dot org
> > What's wrong with using -Wl, ? It is only four more characters to
> > type, and it will then work on all build environments.
> >
> > g++ -Wl,-R/home/pme/build/install-2001-01-04/lib huh.cc
Phil Edwards writes:
> Nothing's *wrong* with it. Just
>
> 1) wanted to make certain I wasn't missing anything obvious, and
> 2) it seems a bit on the gratuitiously incompatible side.
>
> 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.
At the risk of annoying Robert Dewar again :-), I think the user is
correct and this is a bug. I've long struggled to get -R to work on
Linux, didn't know I needed to say -Wl, and wound up more that once having
to become root and messing with ldconfig when this shouldn't have been
necessary.
-R should work the same way on all platforms.