mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-28 04:50:36 -09:00
package/stunnel: fix build on ARM Thumb-1
stunnel's configure unconditionally probes -fstack-clash-protection
using AX_APPEND_COMPILE_FLAGS. The probe compiles a trivial conftest.c,
which succeeds, so the flag ends up in CFLAGS. However, on ARM Thumb-1
gcc implements stack clash protection through -fstack-check=specific,
which it refuses for any real function body, so every source file fails
to build:
stunnel.c:1003:1: sorry, unimplemented: '-fstack-check=specific' for Thumb-1
Force the corresponding autoconf cache variable to "no" on Thumb-1, in
the same way cmocka already works around this gcc limitation, and
consistently with the existing -fstack-protector-strong override.
Fixes:
https://autobuild.buildroot.org/results/3d691184ba83ba4d881632f2b2bb4da5aa50f491/
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Assisted-by: Claude:claude-opus-5
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 15ccf339c9)
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
This commit is contained in:
committed by
Raphaël Mélotte
parent
21e709049a
commit
67163f7e1d
@@ -18,6 +18,11 @@ STUNNEL_LICENSE_FILES = COPYING.md COPYRIGHT.md
|
||||
STUNNEL_CPE_ID_VENDOR = stunnel
|
||||
STUNNEL_SELINUX_MODULES = stunnel
|
||||
|
||||
# gcc for ARM Thumb1 doesn't implement -fstack-clash-protection
|
||||
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
||||
STUNNEL_CONF_ENV += ax_cv_check_cflags___fstack_clash_protection=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||
STUNNEL_DEPENDENCIES += systemd
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user