Re: Howto build statically linked PHP CGI (without shared libs)

From: Date: Wed, 10 Sep 2008 21:39:47 +0000
Subject: Re: Howto build statically linked PHP CGI (without shared libs)
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-40450@lists.php.net to get a copy of this message
Jani Taskinen escribió:
Wrong: --disable-shared --enable-static Might or might not work, no guarantees.
Dear Jani, Thanks for your reply, I have tried with a very simple: # ./configure --disable-all --disable-shared --enable-static But, generated binary uses shared libs ;-( # file sapi/cgi/php-cgi sapi/cgi/php-cgi: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped # ldd sapi/cgi/php-cgi
       libcrypt.so.1 => /lib/libcrypt.so.1 (0x00335000)
       libresolv.so.2 => /lib/libresolv.so.2 (0x00375000)
       libm.so.6 => /lib/tls/libm.so.6 (0x002fe000)
       libdl.so.2 => /lib/libdl.so.2 (0x002f8000)
       libnsl.so.1 => /lib/libnsl.so.1 (0x0039e000)
       libc.so.6 => /lib/tls/libc.so.6 (0x001ca000)
       /lib/ld-linux.so.2 (0x001b0000)
Thanks anyway! I will try other method.. -- Santi Saez http://woop.es

« previous php.internals (#40450) next »