Re: configure bug with static openssl 1.1.1? - bugid 77288
| From: | Jan Ehrhardt | Date: | Wed, 23 Oct 2019 04:03:22 +0000 |
| Subject: | Re: configure bug with static openssl 1.1.1? - bugid 77288 | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107634@lists.php.net to get a copy of this message | ||
"Helmut K. C. Tessarek" in php.internals (Tue, 22 Oct 2019 22:33:39 -0400):
>Eureka!
>
>After a few more hours of trial and error I managed to get it working.
>
>However, the
-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"
That is more or less the same answer I posted 13 hours earlier
https://news-web.php.net/php.internals/107628
Too bad it did not bave seemed to reach the mailinglist and/or
https://externals.io/message/103582
Frustrating that https://news-web.php.net/php.internals is not in
sync with
the mailinglist and/or https://externals.io/
BTW: should not that be '-pthread' in stead of '-lpthread'? It was stripped
from OPENSSL_LIBS as found by Nikita:
https://news-web.php.net/php.internals/107543
--
Jan