...

Text file src/cmd/go/testdata/script/build_shared_reproducible.txt

Documentation: cmd/go/testdata/script

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

View as plain text