This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: rewrite lib/g77.exp
- To: geoffk at geoffk dot org
- Subject: Re: rewrite lib/g77.exp
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 28 Oct 2001 19:51:13 -0500 (EST)
- Cc: gcc-patches at gcc dot gnu dot org
> From: Geoff Keating <geoffk@geoffk.org>
>
> "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
>
> > > 2001-10-23 Geoffrey Keating <geoffk@redhat.com>
> > >
> > > * lib/g77.exp: Rewrite based on lib/g++.exp.
> >
> > Geoff,
> >
> > Your patch seems to cause every test to fail on sparc-sun-solaris2.7.
> > All tests yield this error:
> >
> > > collect2: ld returned 1 exit status
> > > compiler exited with status 1
> > > output is:
> > > /usr/ccs/bin/ld: illegal option -- -
> > > usage: ld [-abc:d:e:f:h:il:mo:p:rstu:z:B:D:F:GI:L:M:N:P:Q:R:S:VY:] file(s)
> > > [...]
> >
> > (I'm using native as/ld.)
> >
> > When I revert your g77.exp patch I get only 9 failures.
>
> Yes.
>
> I'm sure the problem is with the second of these lines:
>
> if [file exists "${gccpath}/libf2c/.libs/libg2c.so"] {
> append flags "-Wl,--rpath-link,${rootme} "
> append ld_library_path ":${gccpath}/libf2c/.libs"
> }
>
> which is GNU ld specific; it aims to ensure that the just-built
> libgcc_s.so is linked against. Can you propose a substitute for it
> that works with both Solaris ld and GNU ld?
What's wrong with:
> append ld_library_path ":${rootme}"
like in g++.exp?
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions