aboutsummaryrefslogtreecommitdiff
path: root/depends/hosts/android.mk
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-11-16 10:01:38 +0800
committerfanquake <fanquake@gmail.com>2022-06-14 12:08:27 +0100
commit094772656d71b3f5022ae292094e878da035de9e (patch)
tree25e0ef7721c5dc5a4970324a48f892141d8c3541 /depends/hosts/android.mk
parent9e4fbebcc8e497016563e46de4c64fa094edab2d (diff)
downloadbitcoin-094772656d71b3f5022ae292094e878da035de9e.tar.xz
build: support LTO in depends
No Qt for now.
Diffstat (limited to 'depends/hosts/android.mk')
-rw-r--r--depends/hosts/android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/depends/hosts/android.mk b/depends/hosts/android.mk
index fcc1c4f5c3..9029355460 100644
--- a/depends/hosts/android.mk
+++ b/depends/hosts/android.mk
@@ -5,6 +5,12 @@ else
android_CXX=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang++
android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang
endif
+
+ifneq ($(LTO),)
+android_CFLAGS += -flto
+android_LDFLAGS += -flto
+endif
+
android_AR=$(ANDROID_TOOLCHAIN_BIN)/llvm-ar
android_RANLIB=$(ANDROID_TOOLCHAIN_BIN)/llvm-ranlib