From e934e85dcfd3aeaec258c03b7c3e38ab8db4a263 Mon Sep 17 00:00:00 2001 From: samuelOsborne Date: Mon, 2 Dec 2024 17:34:48 +0100 Subject: [PATCH] fix: building libjpeg for arm --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 50976d6a..93301d2b 100644 --- a/Makefile +++ b/Makefile @@ -346,6 +346,7 @@ endef define SETUP_CMAKE cmake -DCMAKE_INSTALL_PREFIX=$(DEP_ARTIFACTS_DIR) \ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ + -CFLAGS="-Wall -arch arm64" \ -DBUILD_SHARED_LIBS=OFF $(CMAKE_BUILD_SETTINGS) $(PLATFORM) $(TOOLCHAIN_FILE) \ -B $(DEP_BUILD_DIR) \ $(DEP_SOURCE_DIR) @@ -564,6 +565,7 @@ define NEW_APPLE_CMAKE_BUILD # Setup cmake $4/$(CMAKE_CACHE): DEP_SOURCE_DIR := $(DEPS_MODULES_DIR)/$3 $4/$(CMAKE_CACHE): DEP_BUILD_DIR := $4 +$4/$(CMAKE_CACHE): CFLAGS := -Wall -arch arm64 $4/$(CMAKE_CACHE): DEP_ARTIFACTS_DIR := $$($1_DEPS_ARTIFACTS_DIR) $4/$(CMAKE_CACHE): CMAKE_BUILD_SETTINGS := -GXcode -DCMAKE_MACOSX_BUNDLE=NO $4/$(CMAKE_CACHE): PLATFORM := -DPLATFORM=$$($1_ARCH)