about summary refs log tree commit diff stats
path: root/premake5.lua
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-06-05 23:41:30 -0400
committerCharadon <dev@iotib.net>2022-06-05 23:41:30 -0400
commit25f730fb9f859f27d6d3a3e7fb2e8ba0232d38b8 (patch)
tree60776c773e429d458987eae03a7f76f3e85ef3da /premake5.lua
parent5ced498a2638c9e5c58f60130c15e2a246fdadb5 (diff)
downloadPong-C-25f730fb9f859f27d6d3a3e7fb2e8ba0232d38b8.tar.gz
More fixes
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.")