Re: configure bug with static openssl 1.1.1? - bugid 77288
| From: | Rainer Jung | Date: | Mon, 14 Oct 2019 08:14:20 +0000 |
| Subject: | Re: configure bug with static openssl 1.1.1? - bugid 77288 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107538@lists.php.net to get a copy of this message | ||
Am 14.10.2019 um 10:12 schrieb Rainer Jung:
Am 13.10.2019 um 23:04 schrieb Helmut K. C. Tessarek: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, RainerOn 2019-10-13 17:00, Nikita Popov wrote: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.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.