Skip to content

Commit

Permalink
fix: building libjpeg for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelOsborne committed Dec 2, 2024
1 parent 8dd5b18 commit e934e85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e934e85

Please sign in to comment.