title: Can not find libz.dylib when build libzip by homebrew in Mac OS 10.16 (Big Sur)
body: <p>When building libzip by homebrew (Mac OS 10.16), it complains <code>make[2]: *** No rule to make target /usr/lib/libz.dylib', needed by `lib/libzip.5.3.dylib'.  Stop.</code>, but I have <em>/usr/lib/libz.dylib</em> as a soft link, the real lib (libz.1.dylib) is missing.</p>
  <p>So how could I fix this?</p>
  <ol>
  <li>output from <code>brew reinstall libzip</code></li>
  </ol>
  <pre><code>
  ==&gt; Installing php dependency: libzip
  ==&gt; cmake .
  ==&gt; make install
  
  cd /tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib &amp;&amp; /usr/local/homebrew/Library/Homebrew/shims/mac/super/clang -DHAVE_CONFIG_H -Dzip_EXPORTS -I/tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1 -I/tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib  -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.16.sdk -fPIC -fvisibility=hidden   -o CMakeFiles/zip.dir/zip_winzip_aes.c.o   -c /tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib/zip_winzip_aes.c
  [ 85%] Building C object lib/CMakeFiles/zip.dir/zip_source_winzip_aes_decode.c.o
  cd /tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib &amp;&amp; /usr/local/homebrew/Library/Homebrew/shims/mac/super/clang -DHAVE_CONFIG_H -Dzip_EXPORTS -I/tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1 -I/tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib  -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.16.sdk -fPIC -fvisibility=hidden   -o CMakeFiles/zip.dir/zip_source_winzip_aes_decode.c.o   -c /tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib/zip_source_winzip_aes_decode.c
  [ 87%] Building C object lib/CMakeFiles/zip.dir/zip_source_winzip_aes_encode.c.o
  cd /tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib &amp;&amp; /usr/local/homebrew/Library/Homebrew/shims/mac/super/clang -DHAVE_CONFIG_H -Dzip_EXPORTS -I/tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1 -I/tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib  -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.16.sdk -fPIC -fvisibility=hidden   -o CMakeFiles/zip.dir/zip_source_winzip_aes_encode.c.o   -c /tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib/zip_source_winzip_aes_encode.c
  [ 87%] Building C object lib/CMakeFiles/zip.dir/zip_mkstempm.c.o
  cd /tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib &amp;&amp; /usr/local/homebrew/Library/Homebrew/shims/mac/super/clang -DHAVE_CONFIG_H -Dzip_EXPORTS -I/tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1 -I/tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib  -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.16.sdk -fPIC -fvisibility=hidden   -o CMakeFiles/zip.dir/zip_mkstempm.c.o   -c /tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib/zip_mkstempm.c
  [ 87%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_stdio_named.c.o
  cd /tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib &amp;&amp; /usr/local/homebrew/Library/Homebrew/shims/mac/super/clang -DHAVE_CONFIG_H -Dzip_EXPORTS -I/tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1 -I/tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib  -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.16.sdk -fPIC -fvisibility=hidden   -o CMakeFiles/zip.dir/zip_source_file_stdio_named.c.o   -c /tmp/libzip-20200703-7227-so8a0v/libzip-1.7.1/lib/zip_source_file_stdio_named.c
  make[2]: *** No rule to make target `/usr/lib/libz.dylib', needed by `lib/libzip.5.3.dylib'.  Stop.
  
  </code></pre>
  <ol start="2">
  <li>there are only soft links to <code>libz.1.dylib </code> in my /usr/lib</li>
  </ol>
  <pre><code>
  ~$ ls -l /usr/lib/libz.*
  lrwxr-xr-x  1 root  wheel  12 Jan  1  2020 /usr/lib/libz.1.1.3.dylib -&gt; libz.1.dylib                                                                                        lrwxr-xr-x  1 root  wheel  12 Jan  1  2020 /usr/lib/libz.1.2.11.dylib -&gt; libz.1.dylib
  lrwxr-xr-x  1 root  wheel  12 Jan  1  2020 /usr/lib/libz.1.2.5.dylib -&gt; libz.1.dylib
  lrwxr-xr-x  1 root  wheel  12 Jan  1  2020 /usr/lib/libz.1.2.8.dylib -&gt; libz.1.dylib
  lrwxr-xr-x  1 root  wheel  12 Jan  1  2020 /usr/lib/libz.dylib -&gt; libz.1.dylib
  
  </code></pre>
  <ol start="3">
  <li><code>libz.1.dylib</code> is missing.</li>
  </ol>
  <pre><code>
  ~$ sudo find / -name &quot;libz.1.dylib&quot;
  /usr/local/homebrew/Cellar/zlib/1.2.11/lib/libz.1.dylib
  /System/Volumes/Data/usr/local/homebrew/Cellar/zlib/1.2.11/lib/libz.1.dylib
  
  ...
  (lib.1.dylib from CoreSimulator)
  
  </code></pre>