1--- a/raylib/build.py
2+++ b/raylib/build.py
3@@ -158,7 +158,7 @@ def build_unix():
4
5 if platform.system() == "Darwin":
6 print("BUILDING FOR MAC")
7- extra_link_args = [get_the_lib_path() + '/libraylib.a', '-framework', 'OpenGL', '-framework', 'Cocoa',
8+ extra_link_args = get_lib_flags() + ['-framework', 'OpenGL', '-framework', 'Cocoa',
9 '-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework',
10 'CoreVideo']
11 libraries = []