Explorar o código

fix libsdl errors on linux

ruki %!s(int64=4) %!d(string=hai) anos
pai
achega
c404b881d5
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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
         if package:is_plat("linux") and package:config("pic") ~= false then
             table.insert(configs, "--with-pic")
             table.insert(configs, "--with-pic")
         end
         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)
         import("package.tools.autoconf").install(package, configs)
     end)
     end)