Browse Source

fix libsdl errors on linux

ruki 4 years ago
parent
commit
c404b881d5
1 changed files with 4 additions and 0 deletions
  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)