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