Commit e558fdbd authored by Elias Naur's avatar Elias Naur

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/22841Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 009c002c
...@@ -79,8 +79,6 @@ func init() { ...@@ -79,8 +79,6 @@ func init() {
} }
if GOOS == "darwin" { if GOOS == "darwin" {
cc = append(cc, "-Wl,-no_pie")
// For Darwin/ARM. // For Darwin/ARM.
// TODO(crawshaw): can we do better? // TODO(crawshaw): can we do better?
cc = append(cc, []string{"-framework", "CoreFoundation", "-framework", "Foundation"}...) cc = append(cc, []string{"-framework", "CoreFoundation", "-framework", "Foundation"}...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment