소스 검색

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

Jérôme Leclercq 1 년 전
부모
커밋
db365bc95c
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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")