src/cmd/go/testdata/script/build_shared_reproducible.txt
raw| 1 | [!buildmode:shared] skip |
| 2 | [short] skip |
| 3 | [!cgo] skip '-buildmode=shared requires external linking' |
| 4 | [!GOOS:linux] skip |
| 5 | |
| 6 | env GO111MODULE=off |
| 7 | env CGO_ENABLED=1 |
| 8 | go install -a -trimpath -buildvcs=false -buildmode=shared -pkgdir=pkgdir1 runtime |
| 9 | go install -a -trimpath -buildvcs=false -buildmode=shared -pkgdir=pkgdir2 runtime |
| 10 | [GOOS:linux] cmp -q pkgdir1/libruntime.so pkgdir2/libruntime.so |