|
@@ -26,10 +26,16 @@ package("zlib")
|
|
|
end
|
|
|
end)
|
|
|
|
|
|
- on_install("linux", "macosx", function (package)
|
|
|
+ on_install("macosx", function (package)
|
|
|
import("package.tools.autoconf").install(package, {"--static"})
|
|
|
end)
|
|
|
|
|
|
+ on_install("linux", function (package)
|
|
|
+ import("package.tools.autoconf").configure(package, {"--static"})
|
|
|
+ io.gsub("Makefile", "\nCFLAGS=(.-)\n", "\nCFLAGS=%1 -fPIC\n")
|
|
|
+ os.vrun("make install -j4")
|
|
|
+ end)
|
|
|
+
|
|
|
on_install("iphoneos", "android@linux,macosx", "mingw@linux,macosx", "cross", function (package)
|
|
|
import("package.tools.autoconf").configure(package, {host = "", "--static"})
|
|
|
io.gsub("Makefile", "\nAR=.-\n", "\nAR=" .. (package:build_getenv("ar") or "") .. "\n")
|