minizip: reduce scope of applied patch (#21909)

This commit is contained in:
Olivier Cessenat 2021-03-20 15:51:03 +01:00 committed by GitHub
parent ac15e3ec96
commit 86fad97165
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,10 +24,11 @@ class Minizip(AutotoolsPackage):
# error: implicit declaration of function 'mkdir' is invalid in C99
patch('implicit.patch', when='%apple-clang@12:')
patch('implicit.patch', when='%gcc@7.3.0:')
# statically link to libz.a
# https://github.com/Homebrew/homebrew-core/blob/master/Formula/minizip.rb
patch('static.patch')
patch('static.patch', when='%apple-clang@12:')
# build minizip and miniunz
@run_before('autoreconf')