From c53b28d1f1093f1dccc372cd2e4462e5a377d712 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 25 Aug 2018 16:12:53 +0200 Subject: [PATCH] Remove CGO_CFLAGS="-D__ANDROID_API__=19" --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 01ce2b13..24e86c57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -130,7 +130,7 @@ script: - tar czpvf dnscrypt-proxy-macos-${TRAVIS_TAG:-dev}.tar.gz macos - go clean - env CC=arm-linux-androideabi-clang CXX=arm-linux-androideabi-clang++ - CGO_ENABLED=1 CGO_CFLAGS="-D__ANDROID_API__=19" + CGO_ENABLED=1 GOOS=android GOARCH=arm GOARM=7 go build -ldflags="-s -w" - mkdir android-arm - ln dnscrypt-proxy android-arm/ @@ -138,7 +138,7 @@ script: - zip -9 -r dnscrypt-proxy-android_arm-${TRAVIS_TAG:-dev}.zip android-arm - go clean - env CC=aarch64-linux-android-clang CXX=aarch64-linux-android-clang++ - CGO_ENABLED=1 CGO_CFLAGS="-D__ANDROID_API__=19" + CGO_ENABLED=1 GOOS=android GOARCH=arm64 go build -ldflags="-s -w" - mkdir android-arm64 - ln dnscrypt-proxy android-arm64/ @@ -146,7 +146,7 @@ script: - zip -9 -r dnscrypt-proxy-android_arm64-${TRAVIS_TAG:-dev}.zip android-arm64 - go clean - env CC=i686-linux-android-clang CXX=i686-linux-android-clang++ - CGO_ENABLED=1 CGO_CFLAGS="-D__ANDROID_API__=19" GOOS=android + CGO_ENABLED=1 GOOS=android GOARCH=386 go build -ldflags="-s -w" - mkdir android-i386 - ln dnscrypt-proxy android-i386/ @@ -154,7 +154,7 @@ script: - zip -9 -r dnscrypt-proxy-android_i386-${TRAVIS_TAG:-dev}.zip android-i386 - go clean - env CC=x86_64-linux-android-clang CXX=x86_64-linux-android-clang++ - CGO_ENABLED=1 CGO_CFLAGS="-D__ANDROID_API__=19" + CGO_ENABLED=1 GOOS=android GOARCH=amd64 go build -ldflags="-s -w" - mkdir android-x86_64 - ln dnscrypt-proxy android-x86_64/