Note that you can workaround the limitation in 1.9.4 by setting CGO_LDFLAGS_ALLOW before go install: export CGO_LDFLAGS_ALLOW=".*\.a" I updated the README, and the whitelist has already been updated, so it will work in future Go versions.