Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40436 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71894 invoked from network); 10 Sep 2008 14:54:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2008 14:54:18 -0000 Authentication-Results: pb1.pair.com header.from=santi@usansolo.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=santi@usansolo.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain usansolo.net designates 82.194.80.170 as permitted sender) X-PHP-List-Original-Sender: santi@usansolo.net X-Host-Fingerprint: 82.194.80.170 relayout02-q01.dns-servicios.com Linux 2.6 Received: from [82.194.80.170] ([82.194.80.170:40086] helo=relayout02-q01.dns-servicios.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/4E-30769-99FD7C84 for ; Wed, 10 Sep 2008 10:54:18 -0400 Received: from relayout02-redir.dns-servicios.com (relayout02-redir.dns-servicios.com [82.194.80.175]) by relayout02.dns-servicios.com (Postfix) with ESMTP id 8F7ADD181A3 for ; Wed, 10 Sep 2008 16:54:14 +0200 (CEST) Received: from linux11.dns-servicios.com (linux11.dns-servicios.com [82.194.66.135]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by relayout02-dsp.dns-servicios.com (Postfix) with ESMTPS id 889313905A0 for ; Wed, 10 Sep 2008 16:54:09 +0200 (CEST) Received: from [127.0.0.1] (port=53314 helo=mail.usansolo.net) by linux11.dns-servicios.com with esmtpa (Exim 4.69) (envelope-from ) id 1KdR56-0002dD-35 for internals@lists.php.net; Wed, 10 Sep 2008 16:54:08 +0200 MIME-Version: 1.0 Date: Wed, 10 Sep 2008 16:54:08 +0200 To: internals@lists.php.net Message-ID: X-Sender: santi@usansolo.net User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-RelayOut-Watermark: 1221663249.59031@sSb0uXikWyP7F6NEaTQaeA X-RelayOut-Information: AntiSPAM and AntiVIRUS on relayout02 X-RelayOut: Found to be clean X-RelayOut-SpamCheck: no es spam, SpamAssassin (no almacenado, puntaje=0, requerido 6.5) X-RelayOut-From: santi@usansolo.net X-Spam-Status: No Subject: Howto build statically linked PHP CGI (without shared libs) From: santi@usansolo.net Dear Srs, I'm trying to compile a statically linked, without shared libs, CGI version of PHP, I've already tested with 5.2.6 and 5.2.7-dev. Is there any option in ./configure to compile PHP with this feature? Also I have tried passing CC and CFLAGS environment variables with "-static" flags.. but the CGI builds using shared libs, example: # file /tmp/php-cgi /tmp/php-cgi: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped # ldd php-cgi | head libcrypt.so.1 => /lib/libcrypt.so.1 (0x00335000) libc-client.so.0 => /usr/lib/libc-client.so.0 (0xb7f38000) libexslt.so.0 => /usr/lib/libexslt.so.0 (0x00367000) libz.so.1 => /usr/lib/libz.so.1 (0x00323000) libm.so.6 => /lib/tls/libm.so.6 (0x002fe000) libaspell.so.15 => /usr/lib/libaspell.so.15 (0x00767000) libpspell.so.15 => /usr/lib/libpspell.so.15 (0xb7f36000) librt.so.1 => /lib/tls/librt.so.1 (0x006b2000) libmysqlclient.so.14 => /usr/lib/mysql/libmysqlclient.so.14 (0xb7dff000) libmcrypt.so.4 => /usr/lib/libmcrypt.so.4 (0xb7dce000) How can I compile statically the CGI version of PHP? Thanks!! Regards, -- Santi Saez http://woop.es