Skip to contentSkip to conversation

package/libopenssl: fix static build on x86_64

PATCH New Fabrice Fontaine 2 participants 2 messages Oct 15, 2019 – Oct 16, 2019

lore
Share & tools
lore
#0 lore raw

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

---
 package/libopenssl/libopenssl.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/libopenssl/libopenssl.mk +4 -0
index 4a430bcb4d..ff9b52a002 100644
@@ -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
#1 lore raw

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/9839

Fixes:
- http://autobuild.buildroot.org/results/e4f04bb13ec1b82b73db645bea4933e52bca4185

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