File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 77PKGSRC=${PKGSRC:- github.com/ yggdrasil-network/ yggdrasil-go/ src/ version}
88PKGNAME=${PKGNAME:- $(sh contrib/ semver/ name.sh)}
99PKGVER=${PKGVER:- $(sh contrib/ semver/ version.sh --bare)}
10+ GOVER=$( go version | { read _ _ version _; echo ${version# go} ; })
1011
1112LDFLAGS=" -X $PKGSRC .buildName=$PKGNAME -X $PKGSRC .buildVersion=$PKGVER "
1213ARGS=" -v"
@@ -33,6 +34,15 @@ if [ ! $IOS ] && [ ! $ANDROID ]; then
3334 exit 1
3435fi
3536
37+ ver_le () {
38+ printf " $1 \n$2 \n" | sort -VC
39+ }
40+
41+ if [ $ANDROID ] && ver_le 1.23.0 $GOVER ; then
42+ # github.com/wlynxg/anet library relies on //go:linkname
43+ LDFLAGS=" $LDFLAGS -checklinkname=0"
44+ fi
45+
3646if [ $IOS ]; then
3747 echo " Building framework for iOS"
3848 go get golang.org/x/mobile/bind
You can’t perform that action at this time.
0 commit comments