From: Christoph M. Becker Date: Wed, 29 Jul 2015 15:00:37 +0000 (+0200) Subject: Fix #70158: Building with static imap fails X-Git-Tag: php-7.0.0beta3~5^2~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce3c869d19f3acf4befae15a4e37f527c57fa92e;p=php Fix #70158: Building with static imap fails Static builds of ext/imap have duplicate symbols, and so won't link on Windows. To get around this issue, we simply disallow static building of the extension. --- diff --git a/ext/imap/config.w32 b/ext/imap/config.w32 index 5778c34bb4..9e36ed59d0 100644 --- a/ext/imap/config.w32 +++ b/ext/imap/config.w32 @@ -14,7 +14,7 @@ if (PHP_IMAP == "yes") { CHECK_LIB("ws2_32.lib", "imap"); CHECK_LIB("Secur32.lib", "imap"); CHECK_LIB("crypt32.lib", "imap"); - EXTENSION("imap", "php_imap.c"); + EXTENSION("imap", "php_imap.c", true); ADD_FLAG("CFLAGS_IMAP", "/D HAVE_IMAP2000=1 /D HAVE_IMAP2004=1 /D HAVE_IMAP2007a=1 /D HAVE_IMAP2007b=1 /D HAVE_IMAP_SSL=1"); AC_DEFINE('HAVE_IMAP', 1, 'Have IMAP support', true);