Fix: [OSX] Prepend OSX SDK path to the framework search path if building with a custom SDK sysroot.

This commit is contained in:
Michael Lutz 2020-04-10 14:13:23 +02:00
parent 9339e4dcad
commit e90d065f11
1 changed files with 1 additions and 1 deletions

View File

@ -1657,7 +1657,7 @@ make_cflags_and_ldflags() {
if [ "$with_cocoa" != "0" ]; then
CFLAGS="$CFLAGS -DWITH_COCOA"
LIBS="$LIBS -F/System/Library/Frameworks -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox"
LIBS="$LIBS -F$osx_sdk_path/System/Library/Frameworks -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox"
if [ "$enable_cocoa_quartz" != "0" ]; then
CFLAGS="$CFLAGS -DENABLE_COCOA_QUARTZ"