mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-26 03:50:44 -09:00
package/exim: disable valgrind when building with thumb1
src/valgrind.h contains inline asm not compatible with thumb1 so we disable valgrind support for thumb1. Fixes: https://autobuild.buildroot.org/results/720bfa00ca926a398e901366e7ab20d08cfa9a81/ Inspired by buildroot commit26013972ce. The oldest build error of this kind dates back to 2022 https://autobuild.buildroot.net/results/85d/85d8e725a31bc1a3c41b2e388a17ff439274d437/ so a backport to LTS branches should be considered. Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit6c4abe552f) Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
This commit is contained in:
committed by
Raphaël Mélotte
parent
5d1a9b07c0
commit
707a7026fc
@@ -104,6 +104,7 @@ define EXIM_CONFIGURE_TOOLCHAIN
|
||||
$(call exim-config-add,HOSTCFLAGS,$(HOSTCFLAGS))
|
||||
$(call exim-config-add,EXTRALIBS,$(EXIM_EXTRALIBS))
|
||||
$(EXIM_FIX_IP_OPTIONS_FOR_MUSL)
|
||||
$(EXIM_DISABLE_VALGRIND)
|
||||
endef
|
||||
|
||||
ifneq ($(call qstrip,$(BR2_PACKAGE_EXIM_CUSTOM_CONFIG_FILE)),)
|
||||
@@ -154,6 +155,13 @@ else ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
|
||||
EXIM_CFLAGS = -DNO_EXECINFO
|
||||
endif
|
||||
|
||||
# src/valgrind.h contains inline asm not compatible with thumb1
|
||||
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
||||
define EXIM_DISABLE_VALGRIND
|
||||
$(call exim-config-change,NVALGRIND,1)
|
||||
endef
|
||||
endif
|
||||
|
||||
# We need the host version of macro_predef during the build, before
|
||||
# building it we need to prepare the makefile.
|
||||
define EXIM_BUILD_CMDS
|
||||
|
||||
Reference in New Issue
Block a user