about summary refs log tree commit diff stats
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/premake5.lua b/premake5.lua
index 513b303..4bfb452 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -27,29 +27,29 @@ project("Pong")
     if(RaylibStaticLibrary == nil) then
         os.exit(1)
     end
-    libdirs {RaylibStaticLibrary}
+    libdirs {"raylib", "raylib/src"}
 
     -- Detect OS
     if(os.ishost("linux") == true) then
         links {RaylibStaticLibrary, "m", "pthread", "dl"}
     elseif(os.ishost("bsd") == true) then
         print("It is required you build raylib to an external glfw library when on bsd.")
+        linkoptions {"`pkgconf --libs glfw3`"}
         -- Which BSD?
         BSD_OS = io.popen("uname")
         BSD_OS_NAME = BSD_OS:read("*a")
         BSD_OS:close()
         -- Check Result
         if(BSD_OS_NAME == "NetBSD\n") then
-            libdirs(RaylibStaticLibrary, "/usr/X11R7/lib", "/usr/pkg/lib")
-            links {RaylibStaticLibrary, "m", "pthread", "glfw"}
+            links {RaylibStaticLibrary, "m", "pthread"}
         elseif(BSD_OS_NAME == "freebsd") then
-            links {RaylibStaticLibrary, "m", "glfw", "stdthreads"}
+            links {RaylibStaticLibrary, "m", "stdthreads"}
         elseif(BSD_OS_NAME == "openbsd") then
             print("Openbsd doesn't work currently due to lack of c11 threads support.")
-            links {RaylibStaticLibrary, "m", "glfw", "pthread"}
+            links {RaylibStaticLibrary, "m", "pthread"}
         else
             print("Couldn't figure out BSD, assuming freebsd.")
-            links {RaylibStaticLibrary, "m", "glfw", "stdthreads"}
+            links {RaylibStaticLibrary, "m", "stdthreads"}
         end
     elseif(os.ishost("windows") == true) then
         print("This script is expecting a MSYS2 or Cygwin environment. You've been warned.")