]> granicus.if.org Git - php/commitdiff
Fix #70158: Building with static imap fails
authorChristoph M. Becker <cmb@php.net>
Wed, 29 Jul 2015 15:00:37 +0000 (17:00 +0200)
committerChristoph M. Becker <cmb@php.net>
Wed, 29 Jul 2015 15:00:37 +0000 (17:00 +0200)
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.

ext/imap/config.w32

index 5778c34bb4937d9e98bd4c5d9fc7bb673fec2a86..9e36ed59d057a12f95748afcd42648228d25dc23 100644 (file)
@@ -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);