Am 14.10.2019 um 10:12 schrieb Rainer Jung:
Am 13.10.2019 um 23:04 schrieb Helmut K. C. Tessarek:
On 2019-10-13 17:00, Nikita Popov wrote:
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.

I've tried pretty much anything, so if you have flags and env vars that work,
please post them here.

I think what he means is doing:

% export PKG_CONFIG_PATH=/path/to/my/openssl111/pkgconfig

where that directory should contain the pc files from your OpenSSL 1.1.1 installation.

Then (example, you results may vary):

% pkg-config --cflags openssl

-I/path/to/my/openssl111/include

So you would set

export OPENSSL_CFLAGS=/path/to/my/openssl111/include

and then

% pkg-config --libs --static openssl

-L/path/to/my/openssl111/lib -lssl -lcrypto -ldl -pthread

so you would set

export OPENSSL_LIBS="-L/path/to/my/openssl111/lib -lssl -lcrypto -ldl -pthread"

You might try with the values you get back from the above pkg-config command on your system.

If it doesn't work, it would be helpful, if you could then post again your config.log so we can understand the remaining problems.

Addition to self:

plus temporarily rename libssl.so and libcrypto.so during the PHP build, e.g. adding a trailing underscore. The versioned *.so.* files can stay in place, just not *.so.

Regards,

Rainer

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to