summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-04-10 14:13:23 +0200
committerMichael Lutz <michi@icosahedron.de>2020-04-12 18:44:43 +0200
commite90d065f11c22f17744e08877bc6b47dc81a5f90 (patch)
treecf73dcdf7e652f4077795d129b40d347acd8a637
parent9339e4dcad8aa74ff1b2723ea63a2e31c23f5d44 (diff)
downloadopenttd-e90d065f11c22f17744e08877bc6b47dc81a5f90.tar.xz
Fix: [OSX] Prepend OSX SDK path to the framework search path if building with a custom SDK sysroot.
-rw-r--r--config.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index 6738561e2..45c0d7f81 100644
--- 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"