Merge pull request #4066 from termux/golang_include_path

setup_golang: set CGO_CFLAGS=-I$TERMUX_PREFIX/include
This commit is contained in:
Henrik Grimler 2019-07-19 11:05:34 +02:00 committed by GitHub
commit 0c2dd5fb97
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ termux_setup_golang() {
export CGO_ENABLED=1 export CGO_ENABLED=1
export GO_LDFLAGS="-extldflags=-pie" export GO_LDFLAGS="-extldflags=-pie"
export CGO_LDFLAGS="$LDFLAGS" export CGO_LDFLAGS="$LDFLAGS"
export CGO_CFLAGS="-I$TERMUX_PREFIX/include"
if [ "$TERMUX_ARCH" = "arm" ]; then if [ "$TERMUX_ARCH" = "arm" ]; then
export GOARCH=arm export GOARCH=arm
export GOARM=7 export GOARM=7