From: Anatol Belski Date: Wed, 2 May 2018 15:26:37 +0000 (+0200) Subject: Fix shared ext/zip build with static dependency lib X-Git-Tag: php-7.2.6RC1~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afc3f6e8d58248594f9ceb47a2c08fb488a794e6;p=php Fix shared ext/zip build with static dependency lib --- diff --git a/ext/zip/config.w32 b/ext/zip/config.w32 index cdc42bdb1d..76231bee37 100644 --- a/ext/zip/config.w32 +++ b/ext/zip/config.w32 @@ -10,7 +10,8 @@ if (PHP_ZIP != "no") { ) { EXTENSION('zip', 'php_zip.c zip_stream.c'); - if (!PHP_ZIP_SHARED) { + if (get_define("LIBS_ZIP").match("libzip_a.lib")) { + /* Using static dependency lib. */ AC_DEFINE("ZIP_STATIC", 1); }