On 30-07-2012 11:02:59 -0500, Bob Friesenhahn wrote: > On Mon, 30 Jul 2012, Fabian Groffen wrote: > > > > I think libtool only injects -lc if it was actually explicitly given, or > > do you suspect it to do otherwise? > > I think you are correct. However, once this junk makes it into a > libtool .la file then it is preserved by libtool.
Of course. It seems I misunderstood you at first. > Your GCC seems to use GNU ld. My GCC build uses Solaris ld and > therefore uses the collect2 wrapper, which might cause some change in > behavior. My GCC builds (on Solaris 10 and OpenIndiana) do use GNU > 'as' from binutils 2.22. Same systems here. Whether or not using GNU ld, gcc always calls its collect2. I admit I haven't looked at it, since the behaviour is the same when s/collect2/ld/ I don't suspect it doing things wrong. > In my experience, using GNU ld on Solaris is dangerous. I have been > bit by it every time I tried. I have the oppositite experience ;) There's only some pitfalls involving the use of -G iso -shared, and not using -pthread. I'm working on building GCC 4.7.1 now to see if that makes a difference. Fabian -- Fabian Groffen Gentoo on a different level
signature.asc
Description: Digital signature