fix zlib for windows

pull/74/head
ruki 4 years ago
parent e0ee743d17
commit 230fbf5afe
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 2
      packages/z/zlib/xmake.lua

@ -11,7 +11,7 @@ package("zlib")
on_install("windows", function (package)
io.gsub("win32/Makefile.msc", "%-MD", "-" .. package:config("vs_runtime"))
os.vrun("nmake -f win32\\Makefile.msc zlib.lib")
import("package.tools.nmake").build(package, {"-f", "win32\\Makefile.msc", "zlib.lib"})
os.cp("zlib.lib", package:installdir("lib"))
os.cp("*.h", package:installdir("include"))
end)

Loading…
Cancel
Save