diff --git a/packages/w/wgpu-native/xmake.lua b/packages/w/wgpu-native/xmake.lua index 846531020..40e25181c 100644 --- a/packages/w/wgpu-native/xmake.lua +++ b/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")