CVSROOT: /cvs
Module name: ports
Changes by: [email protected] 2017/06/04 12:04:03
Modified files:
lang/go : Makefile
lang/go/patches: patch-src_cmd_link_internal_ld_lib_go
Added files:
lang/go/patches: patch-src_cmd_go_go_test_go
patch-src_cmd_link_internal_ld_ldelf_go
Log message:
Make lang/go work with clang.
This requires three changes:
- OpenBSD clang produces __guard_local symbols that are marked as hidden,
which causes problems with the go linker. Workaround this by explicitly
making __guard_local symbols visible when reading in an ELF object.
- OpenBSD clang currently fails to correctly report the compiler runtime
via --print-libgcc-file-name. Workaround this issue by hardcoding it
for the time being.
- The TestCgoConsistentResults test passes successfully outside of ports,
however fails under a ports build. This requires further investigation
but we can just skip the test for now.