Skip to content

Commit

Permalink
APP-6850 update android build for go 1.23 (#4539)
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter authored and hexbabe committed Nov 14, 2024
1 parent fc6665d commit 8afb714
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android.make
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ droid-rdk.%.aar: etc/android/prefix/aarch64 etc/android/prefix/x86_64
# we clear CGO_LDFLAGS so this doesn't try (and fail) to link to linuxbrew where present
$(eval JNI_ARCH := $(if $(filter arm64,$*),arm64-v8a,x86_64))
$(eval CPU_ARCH := $(if $(filter arm64,$*),aarch64,x86_64))
# checklinkname here is from https://github.com/wlynxg/anet#how-to-build-with-go-1230-or-later
CGO_LDFLAGS= PKG_CONFIG_PATH=$(DROID_PREFIX)/$(CPU_ARCH)/lib/pkgconfig \
gomobile bind -v -target android/$* -androidapi 28 -tags no_cgo \
-ldflags="-checklinkname=0" \
-o $@ ./web/cmd/droid
rm -rf droidtmp/jni/$(JNI_ARCH)
mkdir -p droidtmp/jni/$(JNI_ARCH)
Expand Down

0 comments on commit 8afb714

Please sign in to comment.