https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64900

--- Comment #9 from Rainer Orth <ro at gcc dot gnu.org> ---
(In reply to Ian Lance Taylor from comment #3)
> Unfortunately that patch breaks the build on x86 GNU/Linux.  The problem is
> that the split-stack support (the __morestack symbol) must be linked into
> the shared library directly, not via -lgcc_s.  So it's necessary to link
> with -lgcc also.  The correct link on x86 GNU/Linux is -lgcc -lgcc_s, but
> using -shared-libgcc only links with -lgcc_s.
> 
> I think -lgcc -lgcc_s should also work on x86 Solaris, as the problematic
> symbol is in -lgcc_eh,  not -lgcc.  But I'm not sure about the best way to
> get that, as not all systems support -lgcc_s.

I've recently noticed that this is still unresolved.  The issue had long been
hidden because I had the attached patch in my local tree.  Would you be ok
with that?

2015-02-13  Rainer Orth  <[email protected]>

        libgo:
        PR go/64900
        * configure.ac: Set OSLDFLAGS to -shared-libgcc for Solaris 11+/x86.
        * configure: Regenerate.
        * Makefile.am (libgo_ldflags): Add OSLDFLAGS.
        * Makefile.in, testsuite/Makefile.in: Regenerate.

Reply via email to