On Thu, Jan 03, 2013 at 02:00:22PM +0100, Kaspar Brand wrote:
> On 03.01.2013 12:20, Joe Orton wrote:
> >> add --static to pkg-config invocations, so that libraries for
> >> static linking are also taken into account (PR 54252 - note that
> >> the additional flags will only appear in modules/ssl/modules.mk
> >> and ab_LDFLAGS, so potential side effects are limited)
> >
> > This is the wrong thing to do in 99% of cases and a static OpenSSL build
> > is the wrong thing to use in 99.99% of cases*, so it seems like a poor
> > default.
>
> Maybe the wording of pkg-config's "--static" option is somewhat
> misleading. It doesn't force linking against the static libs (i.e.
> lib{ssl,crypto}.a), but outputs the libraries from openssl.pc's
> Libs.private line instead.
Yup. Having httpd (mod_ssl/ab) link against whatever is listed in
Libs.private is the wrong default, it should be a special case for the
handful of people who build custom OpenSSL libraries.
Regards, Joe