mirror of
https://github.com/golang/go
synced 2024-11-14 14:50:23 -07:00
2c46569f57
Fixes 386 build on 64-bit machines. R=golang-dev, bradfitz, minux.ma CC=golang-dev https://golang.org/cl/5785053
11 lines
306 B
Bash
Executable File
11 lines
306 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright 2011 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.
|
|
|
|
set -e
|
|
gcc $(go env GOGCCFLAGS) -shared -o libcgosotest.so cgoso_c.c
|
|
go build main.go
|
|
LD_LIBRARY_PATH=. ./main
|
|
rm -f libcgosotest.so main
|