I need to build an apache httpd server that will be able to run under multiple linux os (RH, SUSE, e.t.c.)
The main problem is that httpd is using shared libraries:
ldd httpd/bin/httpd
linux-vdso.so.1 => (0x00007fff955fe000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007fec3df54000)
librt.so.1 => /lib64/librt.so.1 (0x00007fec3dd4c000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fec3db14000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fec3d8f7000)
libc.so.6 => /lib64/libc.so.6 (0x00007fec3d564000)
/lib64/ld-linux-x86-64.so.2 (0x00007fec3e183000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fec3d301000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fec3d0fd000)
On 1 of the servers this is causing httpd to fail because of old glibc package:
ldd httpd
./httpd: /lib64/libc.so.6: version `GLIBC_2.10' not found (required by ./httpd)
./httpd: /lib64/libc.so.6: version `GLIBC_2.9' not found (required by ./httpd)
libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00002b1e6b55d000)
librt.so.1 => /lib64/librt.so.1 (0x00002b1e6b680000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002b1e6b789000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b1e6b8c3000)
libc.so.6 => /lib64/libc.so.6 (0x00002b1e6b9dc000)
/lib64/ld-linux-x86-64.so.2 (0x00002b1e6b441000)
Updating glibc on the system is not an option unfortunately.
Is there a correct way of compiling apache httpd with static libraries?