On Saturday, April 1, 2017 at 6:38:23 PM UTC+2, Basile Starynkevitch wrote:
> Is there a way to understand where the mandatory > go install -buildmode=shared std > is installing its stuff? > > Is there a way to check that the above command has been previously and > successfully run? > I found some way, see my monimelt/get-monimelt-dependencies.sh <https://github.com/bstarynk/monimelt/blob/master/get-monimelt-dependencies.sh> script: mygoarch=$(go env GOARCH) ## e.g. amd64 mygoos=$(go env GOOS) ## e.g. linux mygoroot=$(go env GOROOT) ## e.g. /usr/local/go ## check that go install -buildmode=shared std has been run once if [ -f $mygoroot/pkg/${mygoos}_${mygoarch}_dynlink/fmt.shlibname ]; then myfmtshlibname=$(head -1 $mygoroot/pkg/${mygoos}_${mygoarch}_dynlink/fmt .shlibname) if [ ! -f $mygoroot/pkg/${mygoos}_${mygoarch}_dynlink/$myfmtshlibname ]; then echo 1>&2 echo you should have done: go install -buildmode=shared std 1>&2 echo ... but $mygoroot/pkg/${mygoos}_${mygoarch}_dynlink/$myfmtshlibname is missing 1>&2 echo ... using content of $mygoroot/pkg/${mygoos}_${mygoarch}_dynlink/ $myfmtshlibname echo >&2 exit 1 else echo you did run: go install -buildmode=shared std echo ... because we got: $mygoroot/pkg/${mygoos}_${mygoarch}_dynlink/fmt .shlibname echo ... pointing to: $mygoroot/pkg/${mygoos}_${mygoarch}_dynlink/ $myfmtshlibname fi else echo 1>&2 echo you should have done: go install -buildmode=shared std 1>&2 echo ... but $mygoroot/pkg/${mygoos}_${mygoarch}_dynlink/fmt.shlibname is missing 1>&2 echo >&2 exit 1 fi Now, I have to understand how to use go tool compile (probably with make). It looks that the go command is not suitable for me. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.