|
Prev: Compiling PHP on Windows as static lib produces a dynamic lib
Next: Trouble connecting to MySQL using mysqli extension on XP
From: Bernhard Schulz on 13 Jul 2008 11:24 Hello! SORRY - I do not know why the last mail was cut off. Here my mail again: I am trying to compile PHP 5.2.5 on Windows (XP) with VC 6, Windows Server 2003 SDK. I have downloaded the winbuild zip file and the zip from http://files.edin.dk. I am using this configure Flags: ########### cscript /nologo configure.js --disable-all --with-mime-magic --enable-calendar --with-gmp --enable-com-dotnet --with-t1lib --enable-hash --enable-ftp --with-mysql --enable-json --enable-reflection --with-tidy --enable-tokenizer --with-pdo-mysql --enable-zlib --enable-zip --with-iconv --with-bz2 --enable-soap --with-xsl --enable-pdo --with-pdo-sqlite --with-sqlite --enable-zend-multibyte --enable-spl --with-mcrypt --with-mhash --enable-mbregex --enable-exif --with-xml --with-wddx --with-simplexml --with-openssl --enable-cli-win32 --enable-embed=static --with-dom --with-libxml --with-gd --with-curl --disable-cgi --disable-fastcgi --enable-bcmath --enable-mbstring --with-xmlrpc --enable-object-out-dir=.. ########### As you can see I am using --enable-embed=static so I am expecting a LIB file with the object code so I can link against it. But instead I get only a small import library and a huge DLL file. Detailed current result: php5ts.lib (about 750KB) php5ts.dll (about 8.5MB) php5embed.lib (about 750KB) What I expect: 1 or 2 LIBs and no DLL. Is there any (hidden) configure/compiler flag? Thank you, Bernhard |