Merge pull request #394 from radarhere/py2app_libwebp

Fix py2app "New Mach-O header is too large" error
This commit is contained in:
mergify[bot] 2023-07-08 08:11:21 +00:00 committed by GitHub
commit 535b4378e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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