Skip to content

Commit

Permalink
fix build android (capstone-engine#1765)
Browse files Browse the repository at this point in the history
* Update make.sh

fix build android

* Update Makefile

fix build android
  • Loading branch information
jayson-cloude authored Jun 13, 2021
1 parent 3a135d8 commit 9b0a882
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ build_android() {
--install-dir ${STANDALONE}
}

ANDROID=1 CROSS="${STANDALONE}/${CROSS}/bin" CFLAGS="--sysroot=${STANDALONE}/sysroot" ${MAKE} $*
ANDROID=1 CROSS="${STANDALONE}/${CROSS}/bin/" CC=clang CFLAGS="--sysroot=${STANDALONE}/sysroot" ${MAKE} $*
}

# build iOS lib for all iDevices, or only specific device
Expand Down
2 changes: 2 additions & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ endif

ifeq ($(CROSS),)
CC ?= cc
else ifeq ($(ANDROID), 1)
CC = $(CROSS)/../../bin/clang
else
CC = $(CROSS)gcc
endif
Expand Down

0 comments on commit 9b0a882

Please sign in to comment.