This is the mail archive of the gcc-patches@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: rewrite lib/g77.exp


 > 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


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