]> Cypherpunks repositories - gostls13.git/commitdiff
arm: make libcgo build during OS X cross-compile
authorRuss Cox <rsc@golang.org>
Sun, 12 Sep 2010 03:36:06 +0000 (23:36 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 12 Sep 2010 03:36:06 +0000 (23:36 -0400)
The gcc on OS X seems pickier about noticing
symbols that are referred to but not found during
the link of a .so file.

R=r
CC=golang-dev
https://golang.org/cl/2098047

src/libcgo/linux_arm.c

index 32d8629849b5408fa536ee7543b9a19a639d28a1..d674aca1df61f821145ef957ff67492b3cfd78f0 100644 (file)
@@ -1 +1,17 @@
-/* unimplemented */
+// Copyright 2010 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.
+
+#include "libcgo.h"
+
+void
+initcgo(void)
+{
+}
+
+void
+libcgo_sys_thread_start(ThreadStart *ts)
+{
+       // unimplemented
+       *(int*)0 = 0;
+}