Re: configure bug with static openssl 1.1.1? - bugid 77288

From: Date: Mon, 14 Oct 2019 08:12:12 +0000
Subject: Re: configure bug with static openssl 1.1.1? - bugid 77288
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-107537@lists.php.net to get a copy of this message
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. Regards, Rainer

« previous php.internals (#107537) next »