Re: [PHP] building a statically linked php cli

2004-03-15 Thread Thorsten Müller
Am Freitag, 12. März 2004 16:58 schrieb Hugh Beaumont:
 Hi List,



 What I want is a binary that has all the libs built into it (I realize
 this will result in a larger binary and memory footprint).

 Any advice?

try 
make LDFLAGS=-all-static

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] building a statically linked php cli

2004-03-12 Thread Hugh Beaumont
Hi List,

I am trying to build a statically linked php cli binary. I believe I am using the 
correct
terminology. What I want is a php cli binary that will work on (for the most part)
any server I need to copy it to even if the particular extra libs I compiled against
are not on that server.

I need a cli binary that I can copy to a Linux box and be sure it will work even if 
(for example,
mcrypt, or ming or whatever the case may be is not installed on that server.

For exampe, I want:

ldd php

to return nothing.

I have checked the archives but could not find anything. I tried --enable-static but I 
believe
this is just meant to have the compiler use both .a and .so libs when building.

What I want is a binary that has all the libs built into it (I realize this will 
result in a 
larger binary and memory footprint). 

Any advice? 

Thanks in advance!


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php