]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/testcarchive: don't force -no_pie on Darwin
authorElias Naur <elias.naur@gmail.com>
Fri, 6 May 2016 13:09:57 +0000 (15:09 +0200)
committerElias Naur <elias.naur@gmail.com>
Fri, 6 May 2016 15:19:55 +0000 (15:19 +0000)
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 <crawshaw@golang.org>
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

misc/cgo/testcarchive/carchive_test.go

index c0c45398cda9db6502c2ace5dba990274a21ade3..0174e31015692892addcb12d6a01e7029e5d8667 100644 (file)
@@ -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"}...)