浏览代码

fix bzip2

ruki 4 年之前
父节点
当前提交
b4f6593697
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/b/bzip2/xmake.lua

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

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