Browse Source

fix bzip2

ruki 4 years ago
parent
commit
b4f6593697
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/b/bzip2/xmake.lua

+ 2 - 1
packages/b/bzip2/xmake.lua

@@ -21,10 +21,11 @@ package("bzip2")
     end)
 
     on_install("macosx", "linux", function (package)
-        local configs = {"PREFIX=" .. package:installdir()}
+        local configs = {}
         if package:config("shared") then
             table.insert(configs, "CFLAGS=-fPIC")
         end
+        io.gsub("Makefile", "PREFIX=.-\n", "PREFIX=" .. package:installdir() .. "\n")
         import("package.tools.make").install(package, configs)
     end)