build.sh: Fix macOS; add path to libffi pkgconfig to PKG_CONFIG_PATH

This commit is contained in:
Stefan Schmidt 2019-06-28 02:11:18 +02:00 committed by mborgerson
parent 4147b42afd
commit e8680193c6

View File

@ -48,6 +48,8 @@ case "$(uname -s)" in # adjust compilation option based on platform
echo 'Compiling for MacOS…' echo 'Compiling for MacOS…'
sys_cflags='-march=native' sys_cflags='-march=native'
sys_opts='--disable-cocoa' sys_opts='--disable-cocoa'
# necessary to find libffi, which is required by gobject
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}/usr/local/opt/libffi/lib/pkgconfig"
;; ;;
CYGWIN*|MINGW*|MSYS*) CYGWIN*|MINGW*|MSYS*)
echo 'Compiling for Windows…' echo 'Compiling for Windows…'