Browse Source

wgpu-native: Add pthread and dl syslinks on Linux (#2634)

Jérôme Leclercq 1 year ago
parent
commit
db365bc95c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/w/wgpu-native/xmake.lua

+ 6 - 0
packages/w/wgpu-native/xmake.lua

@@ -32,6 +32,12 @@ package("wgpu-native")
         end
         end
     end)
     end)
 
 
+    on_load("linux", function (package)
+        if not package:config("shared") then
+            package:add("syslinks", "dl", "pthread")
+        end
+    end)
+
     on_load("macosx", function (package)
     on_load("macosx", function (package)
         if not package:config("shared") then
         if not package:config("shared") then
             package:add("syslinks", "objc")
             package:add("syslinks", "objc")