Browse Source

Fix sfml pthread syslink (#1364)

Jérôme Leclercq 3 years ago
parent
commit
eed6ab7ebd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/s/sfml/xmake.lua

+ 4 - 0
packages/s/sfml/xmake.lua

@@ -25,6 +25,10 @@ package("sfml")
         end
     end
 
+    if is_plat("linux") then
+        add_syslinks("pthread")
+    end
+
     add_configs("graphics",   {description = "Use the graphics module", default = true, type = "boolean"})
     add_configs("window",     {description = "Use the window module", default = true, type = "boolean"})
     add_configs("audio",      {description = "Use the audio module", default = true, type = "boolean"})