aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-09-28 21:53:06 -0400
committerRuss Cox <rsc@golang.org>2010-09-28 21:53:06 -0400
commit2278ef7e1a757968f57e6803a1a811acfe52fc60 (patch)
tree0c72b9795ff198ab6178d4a7cfbb2e1d4cc7d3da
parent5b7e50a0aaf639fea3899c5946ed7339add5fb09 (diff)
downloadgo-2278ef7e1a757968f57e6803a1a811acfe52fc60.tar.gz
go-2278ef7e1a757968f57e6803a1a811acfe52fc60.zip
libcgo: don't build for NaCl
R=nigeltao CC=golang-dev https://golang.org/cl/2290041
-rwxr-xr-xsrc/libcgo/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcgo/Makefile b/src/libcgo/Makefile
index 259799c92f..365de0f8d0 100755
--- a/src/libcgo/Makefile
+++ b/src/libcgo/Makefile
@@ -2,6 +2,13 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
+ifeq ($(GOOS),nacl)
+
+# Nothing for NaCl
+all clean install:
+ @true
+
+else
include ../Make.inc
all: libcgo.so
@@ -37,3 +44,4 @@ $(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)/libcgo.so: libcgo.so
clean:
rm -f *.o *.so
+endif