Jelajahi Sumber

add pthread for glog (#1927)

ruki 2 tahun lalu
induk
melakukan
a27e7b6d8c
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      packages/g/glog/xmake.lua

+ 5 - 1
packages/g/glog/xmake.lua

@@ -16,7 +16,11 @@ package("glog")
     end
 
     add_deps("cmake")
-    
+
+    if is_plat("linux") then
+        add_syslinks("pthread")
+    end
+
     on_load("windows", "linux", "macosx", "android", "iphoneos", "cross", function (package)
         if package:is_plat("windows") then
             if package:version():le("0.4") and not package:config("shared") then