瀏覽代碼

fix libsdl errors on linux

ruki 4 年之前
父節點
當前提交
c404b881d5
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/l/libsdl/xmake.lua

+ 4 - 0
packages/l/libsdl/xmake.lua

@@ -111,6 +111,10 @@ package("libsdl")
         if package:is_plat("linux") and package:config("pic") ~= false then
             table.insert(configs, "--with-pic")
         end
+        if package:is_plat("linux") then
+            -- fix Missing Xext.h if some X libs are found
+            table.insert(configs, "--without-x")
+        end
         import("package.tools.autoconf").install(package, configs)
     end)