This removes the install.sh script and adds compilevars.sh.
You source the compilevars.sh <path to jdk> in your app's build script, which sets the CGO_CFLAGS environment variable as needed to compile jnigi.
The reason is that the current onetime run of install.sh script doesnt fit into the way Go builds packages, because often the package will get recompiled which will fail with out the environment variable set.
This removes the install.sh script and adds compilevars.sh.
You source the
compilevars.sh <path to jdk>
in your app's build script, which sets the CGO_CFLAGS environment variable as needed to compile jnigi.The reason is that the current onetime run of install.sh script doesnt fit into the way Go builds packages, because often the package will get recompiled which will fail with out the environment variable set.