package/libopenssl: fix static build on x86_64
PATCH 1/1 package/libopenssl: fix static build on x86_64
Use no-asm when building statically on x86_64, see
https://github.com/openssl/openssl/issues/9839
Fixes:
- http://autobuild.buildroot.org/results/e4f04bb13ec1b82b73db645bea4933e52bca4185
Signed-off-by Fabrice Fontaine <[email protected]>
--- package/libopenssl/libopenssl.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/libopenssl/libopenssl.mk +4 -0
@@ -56,6 +56,10 @@ endif ifeq ($(BR2_STATIC_LIBS),y) # Use "gcc" minimalistic target to disable DSO LIBOPENSSL_TARGET_ARCH = gcc +# See https://github.com/openssl/openssl/issues/9839 +ifeq ($(ARCH),x86_64) +LIBOPENSSL_TARGET_ARCH += no-asm +endif else # Some architectures are optimized in OpenSSL # Doesn't work for thumb-only (Cortex-M?)
Signature · 1 line
2.23.0
PATCH 1/1 package/libopenssl: fix static build on x86_64
Quoted 7 lines · On Tue, 15 Oct 2019 23:46:44 +0200 Fabrice Fontaine…
Use no-asm when building statically on
x86_64, see
https://github.com/openssl/openssl/issues/9839Fixes:
- http://autobuild.buildroot.org/results/e4f04bb13ec1b82b73db645bea4933e52bca4185Signed-off-by Fabrice Fontaine <[email protected]>
Is the problem specific to x86-64 ? Reading the Github issue, the OpenSSL developer apparently says that whenever the "generic" architecture variants are used, no-asm should be passed as well. This is not really what your patch is doing.
Could you clarify this ?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com