From ac0a8513d0d01283ccfe8db0e38cd64f3beedd6a Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 8 Jul 2023 16:25:44 +1000 Subject: [PATCH] Fix py2app "New Mach-O header is too large" error --- config.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.sh b/config.sh index 341d0d65d..6c5a0dbaf 100644 --- a/config.sh +++ b/config.sh @@ -93,6 +93,9 @@ function pre_build { ORIGINAL_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -O3 -DNDEBUG" + if [[ -n "$IS_MACOS" ]]; then + CFLAGS="$CFLAGS -Wl,-headerpad_max_install_names" + fi build_libwebp CFLAGS=$ORIGINAL_CFLAGS