aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-06-22 14:23:54 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-06-22 14:23:54 +0000
commit7d8c7b26c811748fc606085bf169dcd8a426eaf4 (patch)
treecbbe41462f4c5e03b73912f7bb8d2e7a54e61297 /libgo
parentb6d03af0b128d4a1f923f18aff52549f5fad1453 (diff)
downloadgcc-7d8c7b26c811748fc606085bf169dcd8a426eaf4.zip
gcc-7d8c7b26c811748fc606085bf169dcd8a426eaf4.tar.gz
gcc-7d8c7b26c811748fc606085bf169dcd8a426eaf4.tar.bz2
runtime: build testprogcgo with -pthread
Building this test with gccgo requires an explicit -pthread option to be passed to the C compiler, so that it links against -lpthread. This test is not built today, but it will be soon with a future patch. Reviewed-on: https://go-review.googlesource.com/46451 From-SVN: r249555
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/runtime/testdata/testprogcgo/callback.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/runtime/testdata/testprogcgo/callback.go b/libgo/go/runtime/testdata/testprogcgo/callback.go
index 7d9d68d..7b58f4a 100644
--- a/libgo/go/runtime/testdata/testprogcgo/callback.go
+++ b/libgo/go/runtime/testdata/testprogcgo/callback.go
@@ -7,6 +7,9 @@
package main
/*
+#cgo CFLAGS: -pthread
+#cgo LDFLAGS: -pthread
+
#include <pthread.h>
void go_callback();