From eddddf042dcdc211658589dd294040ac5b585794 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 11 Sep 2010 23:36:06 -0400 Subject: [PATCH] arm: make libcgo build during OS X cross-compile 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 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/libcgo/linux_arm.c b/src/libcgo/linux_arm.c index 32d8629849..d674aca1df 100644 --- a/src/libcgo/linux_arm.c +++ b/src/libcgo/linux_arm.c @@ -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; +} -- 2.48.1