]> Cypherpunks repositories - gostls13.git/commitdiff
libcgo: don't build for NaCl
authorRuss Cox <rsc@golang.org>
Wed, 29 Sep 2010 01:53:06 +0000 (21:53 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 29 Sep 2010 01:53:06 +0000 (21:53 -0400)
R=nigeltao
CC=golang-dev
https://golang.org/cl/2290041

src/libcgo/Makefile

index 259799c92f6b8264e961c59d8cf875cc73c084ca..365de0f8d0836c9c9067ccefa096c07d4dc8e3a6 100755 (executable)
@@ -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