From 9fa41a97b9c2d9894034b16750a6e7dd0cb196c5 Mon Sep 17 00:00:00 2001 From: hasen Date: Mon, 30 May 2022 22:27:13 +0900 Subject: [PATCH] Missing lib imports for raylib on macOS The following frameworks are required for linking to work (due to dependency on glfw): Cocoa, OpenGL, IOKit --- vendor/raylib/raylib.odin | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vendor/raylib/raylib.odin b/vendor/raylib/raylib.odin index ec057cd78..3fc3e051f 100644 --- a/vendor/raylib/raylib.odin +++ b/vendor/raylib/raylib.odin @@ -106,7 +106,12 @@ when ODIN_OS == .Windows { "system:pthread", } } else when ODIN_OS == .Darwin { - foreign import lib "macos/libraylib.a" + foreign import lib { + "macos/libraylib.a", + "system:Cocoa.framework", + "system:OpenGL.framework", + "system:IOKit.framework", + } } else { foreign import lib "system:raylib" }