Browse Source
Merge pull request #4066 from termux/golang_include_path
setup_golang: set CGO_CFLAGS=-I$TERMUX_PREFIX/include
emacs-27
Henrik Grimler
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
scripts/build/setup/termux_setup_golang.sh
|
|
@ -4,6 +4,7 @@ termux_setup_golang() { |
|
|
|
export CGO_ENABLED=1 |
|
|
|
export GO_LDFLAGS="-extldflags=-pie" |
|
|
|
export CGO_LDFLAGS="$LDFLAGS" |
|
|
|
export CGO_CFLAGS="-I$TERMUX_PREFIX/include" |
|
|
|
if [ "$TERMUX_ARCH" = "arm" ]; then |
|
|
|
export GOARCH=arm |
|
|
|
export GOARM=7 |
|
|
|