# HG changeset patch # User Michael Lutz # Date 2020-04-10 12:13:23 # Node ID 073a732cabcbde41a94df8fb6344b4fd7fa6cd62 # Parent 4fcb1c9028a2846b6ebdf766622a73b1e87ad8b4 Fix: [OSX] Prepend OSX SDK path to the framework search path if building with a custom SDK sysroot. diff --git a/config.lib b/config.lib --- a/config.lib +++ b/config.lib @@ -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"