From: Elias Naur Date: Fri, 6 May 2016 13:09:57 +0000 (+0200) Subject: misc/cgo/testcarchive: don't force -no_pie on Darwin X-Git-Tag: go1.7beta1~303 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e558fdbd9a3865dd383f50524bb8a18b9e6a0cb0;p=gostls13.git misc/cgo/testcarchive: don't force -no_pie on Darwin Now that darwin/arm supports position independent code, allow the binaries generated by the c-archive tests be position independent (PIE) as well. Change-Id: If0517f06e92349ada29a4e3e0a951f08b0fcc710 Reviewed-on: https://go-review.googlesource.com/22841 Reviewed-by: David Crawshaw Run-TryBot: Elias Naur TryBot-Result: Gobot Gobot --- diff --git a/misc/cgo/testcarchive/carchive_test.go b/misc/cgo/testcarchive/carchive_test.go index c0c45398cd..0174e31015 100644 --- a/misc/cgo/testcarchive/carchive_test.go +++ b/misc/cgo/testcarchive/carchive_test.go @@ -79,8 +79,6 @@ func init() { } if GOOS == "darwin" { - cc = append(cc, "-Wl,-no_pie") - // For Darwin/ARM. // TODO(crawshaw): can we do better? cc = append(cc, []string{"-framework", "CoreFoundation", "-framework", "Foundation"}...)