Skip to content

Commit

Permalink
wolfssl: use -fomit-frame-pointer to fix asm error
Browse files Browse the repository at this point in the history
32-bit x86 fail to compile fast-math feature when compiled with frame
pointer, which uses a register used in a couple of inline asm functions.

Previous versions of wolfssl had this by default.  Keeping an extra
register available may increase performance, so it's being restored for
all architectures.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit 750d52f)
  • Loading branch information
cotequeiroz authored and phs07 committed Oct 3, 2020
1 parent eae2dba commit 11ced84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/libs/wolfssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=wolfssl
PKG_VERSION:=4.4.0-stable
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/wolfSSL/wolfssl/archive/v$(PKG_VERSION)
Expand Down Expand Up @@ -56,7 +56,7 @@ define Package/libwolfssl/config
source "$(SOURCE)/Config.in"
endef

TARGET_CFLAGS += $(FPIC) -DFP_MAX_BITS=8192
TARGET_CFLAGS += $(FPIC) -DFP_MAX_BITS=8192 -fomit-frame-pointer

# --enable-stunnel needed for OpenSSL API compatibility bits
CONFIGURE_ARGS += \
Expand Down

0 comments on commit 11ced84

Please sign in to comment.