On Wed, Jul 26, 2017 at 9:58 AM, David Edelsohn <dje....@gmail.com> wrote: > On Wed, Jul 26, 2017 at 12:41 PM, REIX, Tony <tony.r...@atos.net> wrote: >> Description: >> * This patch adds linker options for gotools for AIX. >> >> Tests: >> * Fedora25/x86_64 + GCC trunk : Configure/Build: SUCCESS >> - build remade by means of gmake. >> - some test redone in libgo (gmake check) >> * AIX + GCC 7.1.0 : >> - build remade by means of gmake. >> - some test redone in libgo (gmake check) >> >> ChangeLog: >> * Makefile.am (AM_LDFLAGS & GOLINK): Changes for linking on AIX. >> * Makefile.in: Rebuild. > > If this is trying to fix AIX search paths, a better solution would > seem to be the equivalent of -static-libstdc++ -static-libgcc. The Go > tools should be linked statically and not depend on Go shared > libraries.
On GNU/Linux I used to use -static-libgo, but I changed it because of https://gcc.gnu.org/PR64738. Of course on AIX we can do as you prefer. Ian