Skip to content

glfw linker option needed on Linux #26

@carld

Description

@carld

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" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions