diff --git a/Makefile b/Makefile index c400a7de..7fa010a7 100644 --- a/Makefile +++ b/Makefile @@ -593,7 +593,7 @@ $4/$(CMAKE_CACHE): DEP_BUILD_DIR := $4 # ifneq ($(filter $(BUILD_PLATFORM_ARCH),$(AARCH64_ARCH) $(ARM_ARCH)),) ifeq ($2, LIBJPEG_TURBO) -ifeq ($(findstring $$($1_DEPS_ARTIFACTS_DIR),x86_64),) +ifeq ($(findstring x86_64,$($1_DEPS_ARTIFACTS_DIR)),) $4/$(CMAKE_CACHE): C_FLAGS := -DCMAKE_C_FLAGS="-Wall -arch arm64 -funwind-tables" else $4/$(CMAKE_CACHE): C_FLAGS := -DCMAKE_C_FLAGS="" # Reset to empty if not arm64