github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/misc/cgo/testso/test.bash (about) 1 #!/bin/sh 2 # Copyright 2011 The Go Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style 4 # license that can be found in the LICENSE file. 5 6 set -e 7 $(go env CC) $(go env GOGCCFLAGS) -shared -o libcgosotest.so cgoso_c.c 8 go build main.go 9 LD_LIBRARY_PATH=. ./main 10 rm -f libcgosotest.so main