From fe8744be9ed9c8e88e37992d59771b95545687f0 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 25 Apr 2019 22:53:04 +0800 Subject: [PATCH] improve libjpeg --- packages/l/libjpeg/xmake.lua | 2 +- packages/z/zlib/xmake.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/l/libjpeg/xmake.lua b/packages/l/libjpeg/xmake.lua index de210c6ea..e6f193ffc 100644 --- a/packages/l/libjpeg/xmake.lua +++ b/packages/l/libjpeg/xmake.lua @@ -15,7 +15,7 @@ package("libjpeg") os.cp("libjpeg.lib", package:installdir("lib")) end) - on_install(function (package) + on_install("linux", "macosx", "iphoneos", "android", function (package) import("package.tools.autoconf").install(package, {"--enable-shared=no"}) end) diff --git a/packages/z/zlib/xmake.lua b/packages/z/zlib/xmake.lua index 0e1bff10d..b64f7bc0f 100644 --- a/packages/z/zlib/xmake.lua +++ b/packages/z/zlib/xmake.lua @@ -19,7 +19,7 @@ package("zlib") os.cp("zlib.lib", package:installdir("lib")) os.cp("*.h", package:installdir("include")) end) - + on_install("iphoneos", "android", "mingw", function (package) import("package.tools.autoconf").configure(package, {host = "", "--static"}) io.gsub("Makefile", "\nAR=.-\n", "\nAR=" .. (package:build_getenv("ar") or "") .. "\n")