You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Santiago DIEZ <sa...@caoba.fr> on 2013/03/01 23:13:38 UTC

[users@httpd] How to compile Apache without dynamic libraries

Hi all,

I'm Santiago from Paris, France, new subscriber to this mailing list.
Hope I will be of some help even though I just completed today my very
first compilation of Apache HTTP from source.

So as I said, I just compiled Apache HTTP from source.
It's working fine so I'm very happy and proud.

Now I'm trying to chroot Apache so I added the directive *ChrootDir /var/www
* in */usr/local/httpd-2.4.4/conf/httpd.conf*.
Then Apache HTTP fails with the message *libgcc_s.so.1 must be installed
for pthread_cancel to work*.
I found various solutions where people just copy the library into the jail
and I tested it and it works.

But what I would like to do is to *re-compile Apache so that it includes
the library into the standalone program*.
How is that possible?

Thanks for your help.

-------------------------
*Santiago DIEZ*

Re: [users@httpd] How to compile Apache without dynamic libraries

Posted by Santiago DIEZ <sa...@caoba.fr>.
Hi Eric,

Thank you for your concern. Unfortunately, I can't use your help.
I mean, I don't fully understand what I'm supposed to do with *"use libgcc
specific info for static usage"*.

I found the switch *-static-libgcc* in gcc man page but I have no idea
where to add it when compiling.
I'm not using the command *gcc* itself but only *configure* and *make*.

Hope I'm not asking a non-smart question (
http://www.catb.org/~esr/faqs/smart-questions.html).
Just tell me.

-------------------------
*Santiago DIEZ*


On Sat, Mar 2, 2013 at 1:14 AM, Eric Covener <co...@gmail.com> wrote:

> > But what I would like to do is to re-compile Apache so that it includes
> the
> > library into the standalone program.
> > How is that possible?
> >
>
> libgcc_s is a special case, so you probably want to use the libgcc_s
> specific info for static usage.
>

Re: [users@httpd] How to compile Apache without dynamic libraries

Posted by Eric Covener <co...@gmail.com>.
> But what I would like to do is to re-compile Apache so that it includes the
> library into the standalone program.
> How is that possible?
>

libgcc_s is a special case, so you probably want to use the libgcc_s
specific info for static usage.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org