summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/minizip/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/minizip/package.py b/var/spack/repos/builtin/packages/minizip/package.py
index 85c9fab4b7..2871582295 100644
--- a/var/spack/repos/builtin/packages/minizip/package.py
+++ b/var/spack/repos/builtin/packages/minizip/package.py
@@ -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')