On Sun, Oct 13, 2019 at 10:51 PM Jan Ehrhardt <php...@ehrhardt.nl> wrote:

> "Helmut K. C. Tessarek" in php.internals (Thu, 7 Feb 2019 13:39:11
> +0100):
> >On 2018-12-13 17:52, Rainer Jung wrote:
> >> I might be wrong, but I vaguely remember that PHp does not call
> >> "pkg-config --static --libs openssl" with a correctly setup
> >> PKG_CONFIG_PAATZ to get the libs needed for static compilation.
> >> Typically OpenSSL installs correct pc files that contain pthread as such
> >> a dependency. Without asking pkg-config some fixed decisin logic would
> >> need to find all the needed libs.
> >
> >I'd like to follow up on bug https://bugs.php.net/bug.php?id=77288
> >
> >It's not stated in the documentation anywhere that a static openssl is
> >not supported.
> >It's ok, if devs don't have the time to look into it right away, but
> >I've opened this bug 2 months ago, and it would be nice, if someone
> >could at least acknowledge the bug and/or give some sort of a feedback.
> >
> >If PHP does not support static openssl, please change the documentation
> >accordingly.
> >
> >However, it's wotking with openssl 1.0.2, so I must assume that there's
> >a bug somewhere otherwise it would work with openssl 1.1.1 as well.
>
> Did you ever find a solution to compile PHP with a static OpenSSL 1.1.1?
> --
> Jan
>

Don't know about previous versions, but at least on 7.4 setting
OPENSSL_CFLAGS and OPENSSL_LIBS appropriately (e.g. using pkg-config
--static --cflags/--libs return values) should work. These environment
variables allow you to bypass normal pkg-config checks, which are generally
going to be non-static.

Nikita

Reply via email to