Re: configure bug with static openssl 1.1.1? - bugid 77288
| From: | Helmut K. C. Tessarek | Date: | Wed, 23 Oct 2019 02:33:39 +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 12 13 14 15 16 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107633@lists.php.net to get a copy of this message | ||
Eureka!
After a few more hours of trial and error I managed to get it working.
However, the
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
-lpthread in OPENSSL_LIBS is ignored. I checked the config.log,
but it wasn't added to the linker command. But adding it to LIBS solved the
issue.
This is the command that finally worked:
./configure [snip] --with-openssl=/usr/local/ssl-1.1.1 [snip]
CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib LIBS="-lpthread"
OPENSSL_LIBS="-L/usr/local/ssl-1.1.1/lib -l:libssl.a -l:libcrypto.a -ldl
-lpthread" OPENSSL_CFLAGS="-I/usr/local/ssl-1.1.1/include"
I will also update the bug, so that people have this info on file as a reference.
Cheers,
K. C.
--
regards Helmut K. C. Tessarek KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944
/*
Thou shalt not follow the NULL pointer for chaos and madness
await thee at its end.
*/
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc