Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compiling PHP on Windows as static lib produces a dynamic lib

16 views
Skip to first unread message

Bernhard Schulz

unread,
Jul 13, 2008, 10:56:27 AM7/13/08
to php-w...@lists.php.net
Hello!

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=..

Bernhard Schulz

unread,
Jul 13, 2008, 11:24:51 AM7/13/08
to php-w...@lists.php.net
Hello!

SORRY - I do not know why the last mail was cut off. Here my mail again:

###########

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

ja...@jackk.co.uk

unread,
Jan 29, 2014, 9:14:00 AM1/29/14
to
Bernard.

It has been 5 years, but now I'm having this problem. It seems hopeless to reply to this asking for your help, but did you get anywhere with this?

Jack
0 new messages