From 0f0d007c89dc67a5a34490acafc5195b191f5045 Mon Sep 17 00:00:00 2001 From: Jay Conrod Date: Sat, 25 Aug 2018 14:39:47 -0400 Subject: [PATCH] fix for tests/core/cgo:cc_libs_test --- tests/core/cgo/cc_libs_darwin_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/core/cgo/cc_libs_darwin_test.go b/tests/core/cgo/cc_libs_darwin_test.go index 3373d87dc5..35fa1665f4 100644 --- a/tests/core/cgo/cc_libs_darwin_test.go +++ b/tests/core/cgo/cc_libs_darwin_test.go @@ -30,7 +30,10 @@ func TestBinaries(t *testing.T) { }{ { shortPath: "tests/core/cgo/pure_bin", - wantLibs: map[string]bool{"libSystem": false, "libc++": false}, + // Since go1.11, pure binaries have a dependency on libSystem. + // This is true with go tool link -linkmode=internal + // and with CGO_ENABLED=0 go build ... + wantLibs: map[string]bool{"libc++": false}, }, { shortPath: "tests/core/cgo/c_srcs_bin", wantLibs: map[string]bool{"libSystem": true, "libc++": false},