This is a discussion on Statically linking all libraries into httpd within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi all, I managed to successfully compile httpd image on a mac based linux system. Now I see that httpd ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all,
I managed to successfully compile httpd image on a mac based linux system. Now I see that httpd has reference to the some of the dynamic libraries. I want to know how do I build the httpd image with all the libraries statically linked. I'm currently using standard/default options for ./configure script. I tried setting CFLAGS and LDFLAGS environmental variable to "-static" option, but even that didn't help me. Please help me. Thanks in advance. Regards, LinuxNovice |
|
|||
|
nmdhara@hotmail.com (LinuxNovice) wrote in message news:<bafab144.0310211041.2f138824@posting.google. com>...
> Hi all, > I managed to successfully compile httpd image on a mac based linux > system. Now I see that httpd has reference to the some of the dynamic > libraries. I want to know how do I build the httpd image with all the > libraries statically linked. > > I'm currently using standard/default options for ./configure script. > > I tried setting CFLAGS and LDFLAGS environmental variable to "-static" > option, but even that didn't help me. do you see the -static in the linker calls when building? also i remember another thread either here or on alt.apache.configuration on building a fully static apache and the resulting difficulties. but anyways one would probably not want this as it will hugely increase your memory footprint by bloating up the executable (and remember that with apache1.3 or apache2 with prefork-mpm this will be multiplied by the number of workers plus one)... joachim |