minizip: reduce scope of applied patch (#21909)
This commit is contained in:
parent
ac15e3ec96
commit
86fad97165
1 changed files with 2 additions and 1 deletions
|
@ -24,10 +24,11 @@ class Minizip(AutotoolsPackage):
|
||||||
|
|
||||||
# error: implicit declaration of function 'mkdir' is invalid in C99
|
# error: implicit declaration of function 'mkdir' is invalid in C99
|
||||||
patch('implicit.patch', when='%apple-clang@12:')
|
patch('implicit.patch', when='%apple-clang@12:')
|
||||||
|
patch('implicit.patch', when='%gcc@7.3.0:')
|
||||||
|
|
||||||
# statically link to libz.a
|
# statically link to libz.a
|
||||||
# https://github.com/Homebrew/homebrew-core/blob/master/Formula/minizip.rb
|
# 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
|
# build minizip and miniunz
|
||||||
@run_before('autoreconf')
|
@run_before('autoreconf')
|
||||||
|
|
Loading…
Reference in a new issue