# --enable-static not work

- Thread: https://externals.io/message/3577
- Original archive: https://news-web.php.net/php.internals/3577
- Started by Peter Neuman on 2003-07-23T14:47:17+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #3577 — Peter Neuman — 2003-07-23T14:47:17+00:00

URL: https://externals.io/message/3577#3577

Hello,

I build my PHP-4.3.2 with
./configure --disable-all --with-mysql=/home/peter --enable-static=yes --pre
fix=/home/peter/test_php_install --enable-force-cgi-redirect --enable-discar
d-path --without-pear
make
make install

I see with ldd /home/peter/test_php_install/bin/php

libcrypt.so.1 => /lib/libcrypt.so.1 (0x40017000)
libmysqlclient.so.10 => /home/peter/lib/mysql/libmysqlclient.so.10
(0x40044000)
libresolv.so.2 => /lib/libresolv.so.2 (0x4007a000)
libm.so.6 => /lib/libm.so.6 (0x4008a000)
libdl.so.2 => /lib/libdl.so.2 (0x400ab000)
libnsl.so.1 => /lib/libnsl.so.1 (0x400ae000)
libc.so.6 => /lib/libc.so.6 (0x400c2000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

hmm, why doesn't --enable-static give?

so it should be:
ldd /home/peter/test_php_install/bin/php
not a dynamic executable

Please help me, I need a _complit_ STATIC PHP build, any ideas?

Thanks
Peter Neuman
