Statically linking all libraries into httpd

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-21-2003
LinuxNovice
 
Posts: n/a
Default Statically linking all libraries into httpd

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
  #2 (permalink)  
Old 10-27-2003
Joachim Ring
 
Posts: n/a
Default Re: Statically linking all libraries into httpd

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:10 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0