glfw linker option needed on Linux
carld opened this issue · 0 comments
carld commented
Hi, on my Arch Linux system I had to add glfw to the linker options.
Thanks
diff --git a/premake4.lua b/premake4.lua
index b52cfcc..354e52f 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -14,7 +14,7 @@ solution "fontstash"
targetdir("build")
configuration { "linux" }
- links { "X11","Xrandr", "rt", "GL", "GLU", "pthread" }
+ links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "glfw" }
configuration { "windows" }
defines { "_CRT_SECURE_NO_WARNINGS" }
@@ -40,7 +40,7 @@ solution "fontstash"
targetdir("build")
configuration { "linux" }
- links { "X11","Xrandr", "rt", "GL", "GLU", "pthread" }
+ links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "glfw" }
configuration { "windows" }
defines { "_CRT_SECURE_NO_WARNINGS" }