Skip to content

Commit e8dbf58

Browse files
committed
fix(android-armeabi-v7a/Makefile): correct CC path
1 parent 9849010 commit e8dbf58

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,17 @@ else ifeq ($(PLATFORM),android)
7373
$(error "Android NDK must be set")
7474
endif
7575
BIN = $(ANDROID_NDK)/toolchains/llvm/prebuilt/$(HOST)-x86_64/bin
76+
PATH := $(BIN):$(PATH)
7677
ifneq (,$(filter $(ARCH),arm64 arm64-v8a))
7778
override ARCH := aarch64
79+
ANDROID_ABI := android26
80+
else ifeq ($(ARCH),armeabi-v7a)
81+
override ARCH := armv7a
82+
ANDROID_ABI := androideabi26
83+
else
84+
ANDROID_ABI := android26
7885
endif
79-
CC = $(BIN)/$(ARCH)-linux-android26-clang
86+
CC = $(BIN)/$(ARCH)-linux-$(ANDROID_ABI)-clang
8087
TARGET := $(DIST_DIR)/agent.so
8188
LDFLAGS += -shared
8289
CFLAGS += -fPIC

0 commit comments

Comments
 (0)