http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47515
Ralf Wildenhues <rwild at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rwild at gcc dot gnu.org --- Comment #1 from Ralf Wildenhues <rwild at gcc dot gnu.org> 2011-01-28 18:53:54 UTC --- (In reply to comment #0) > * Building libgo still depends on a linker supporting --whole-archive, but SGI > ld doesn't and GNU ld doesn't work due to PR target/43533. libtool abstracts --whole-archive when libtool convenience archives are used, and it can create relocatable objects. As a cheap way to exploit that you could amend BUILDGOX to create a little convenience archive .la file. Or let BUILDARCHIVE build an actual .la convenience archive, that's even easier. Hmm, there is even a rule to create %.la from %.a, why all this going backwards trying to hack around libtool when it can do the job? libtool also has a pending patch abstracting -Bstatic/-Bdynamic by the way.