I'm attempting to compile PHP from source on MacOS. I'm using the --enable-static configure option to build static libraries like this:
./configure --enable-static --disable-all
make
While this produces a working binary, if I inspect the binary with otool I can see that it's using two shared libraries, libresolv.9.dylib and libSystem.B.dylib:
$ otool -L sapi/cli/php
sapi/cli/php:
/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
Is there any way to statically link these libraries?