Kaynağa Gözat

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

Jérôme Leclercq 1 yıl önce
ebeveyn
işleme
db365bc95c
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  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)
 
+    on_load("linux", function (package)
+        if not package:config("shared") then
+            package:add("syslinks", "dl", "pthread")
+        end
+    end)
+
     on_load("macosx", function (package)
         if not package:config("shared") then
             package:add("syslinks", "objc")