com php-src: Fixed bug #76564 ext/zip link issues: ext/zip/config.w32
| From: | Anatol Belski | Date: | Tue, 03 Jul 2018 13:45:01 +0000 |
| Subject: | com php-src: Fixed bug #76564 ext/zip link issues: ext/zip/config.w32 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102384@lists.php.net to get a copy of this message | ||
Commit: e5ef7cbe8749554ed6ce67a1bd734f3c4cb3eb25
Author: Anatol Belski <ab@php.net> Tue, 3 Jul 2018 15:45:01 +0200
Parents: 8bf21adb8cc10de6d6b1992bf97e60b8d0b21219
Branches: PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e5ef7cbe8749554ed6ce67a1bd734f3c4cb3eb25
Log:
Fixed bug #76564 ext/zip link issues
Add zlib for linking directly, so then ext/zlib is not required.
Bugs:
https://bugs.php.net/76564
Changed paths:
M ext/zip/config.w32
Diff:
diff --git a/ext/zip/config.w32 b/ext/zip/config.w32
index 76231be..e6cd587 100644
--- a/ext/zip/config.w32
+++ b/ext/zip/config.w32
@@ -6,7 +6,7 @@ ARG_ENABLE("zip", "ZIP support", "yes");
if (PHP_ZIP != "no") {
if (CHECK_HEADER_ADD_INCLUDE("zip.h", "CFLAGS_ZIP", PHP_PHP_BUILD +
"\\include;" + PHP_EXTRA_INCLUDES) &&
CHECK_HEADER_ADD_INCLUDE("zipconf.h", "CFLAGS_ZIP", PHP_PHP_BUILD +
"\\lib\\libzip\\include;" + PHP_EXTRA_LIBS + "\\libzip\\include;" + PHP_ZIP)
&&
- (PHP_ZIP_SHARED && CHECK_LIB("libzip.lib", "zip", PHP_ZIP) ||
CHECK_LIB("libzip_a.lib", "zip", PHP_ZIP) &&
CHECK_LIB("libbz2_a.lib", "zip", PHP_ZIP))
+ (PHP_ZIP_SHARED && CHECK_LIB("libzip.lib", "zip", PHP_ZIP) ||
CHECK_LIB("libzip_a.lib", "zip", PHP_ZIP) &&
CHECK_LIB("libbz2_a.lib", "zip", PHP_ZIP) &&
CHECK_LIB("zlib_a.lib", "zip", PHP_ZIP))
) {
EXTENSION('zip', 'php_zip.c zip_stream.c');