diff --git a/src/runtime/cgo/gcc_libinit.c b/src/runtime/cgo/gcc_libinit.c index 1126e1b596..95a18a8bb6 100644 --- a/src/runtime/cgo/gcc_libinit.c +++ b/src/runtime/cgo/gcc_libinit.c @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. // +build darwin dragonfly freebsd linux netbsd +// +build !ppc64,!ppc64le #include #include diff --git a/src/runtime/cgo/gcc_libinit_linux_ppc64x.c b/src/runtime/cgo/gcc_libinit_linux_ppc64x.c new file mode 100644 index 0000000000..82413a5a65 --- /dev/null +++ b/src/runtime/cgo/gcc_libinit_linux_ppc64x.c @@ -0,0 +1,26 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// TODO: see issue #10410 +// +build linux +// +build ppc64 ppc64le + +#include +#include + +void +x_cgo_sys_thread_create(void* (*func)(void*), void* arg) { + fprintf(stderr, "x_cgo_sys_thread_create not implemented"); + abort(); +} + +void +_cgo_wait_runtime_init_done() { + // TODO(spetrovic): implement this method. +} + +void +x_cgo_notify_runtime_init_done(void* dummy) { + // TODO(spetrovic): implement this method. +} \ No newline at end of file