termux compilation fixes: waveshare, mfd_aes_brute and host target

This commit is contained in:
Philippe Teuwen committed 2026-02-06 23:59:34 +01:00
1 parent f0dbcf7f77
commit 932b92d8f4
2 files changed
+13 -5

No files matched your search

+7 -2
View File
@@ -5,8 +5,13 @@ MYCFLAGS = -O3 -ffast-math
MYDEFS =
MYLDLIBS = -lcrypto
SUPPORT_MARCH := $(shell $(CC) -xc /dev/null -c -o /dev/null -march=native > /dev/null 2>/dev/null && echo y)
SUPPORT_MCPU := $(shell $(CC) -xc /dev/null -c -o /dev/null -mcpu=native > /dev/null 2>/dev/null && echo y)
SUPPORT_MARCH ?= $(shell $(CC) -xc /dev/null -c -o /dev/null -march=native > /dev/null 2>/dev/null && echo y)
SUPPORT_MCPU ?= $(shell $(CC) -xc /dev/null -c -o /dev/null -mcpu=native > /dev/null 2>/dev/null && echo y)
# Termux / Android safety
ifneq ($(TERMUX_VERSION),)
SUPPORT_MARCH := n
SUPPORT_MCPU := n
endif
ifeq ($(DONT_BUILD_NATIVE),y)
# do nothing