[Buildroot] [PATCH] package/gcc: help libbacktrace detection of sync builtins

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Sep 30 21:02:20 UTC 2020


On Fri, 25 Sep 2020 11:04:51 +0200
Romain Naour <romain.naour at gmail.com> wrote:

> From: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> 
> The logic in libbacktrace/configure.ac to detect if __sync builtins
> are available assumes they are as soon as target_subdir is not
> empty, i.e when cross-compiling. However, some platforms do not have
> __sync builtins, so help the configure script a bit.
> 
> "libbacktrace_cv_sys_sync=no" is lost when it is added to
> HOST_GCC_COMMON_CONF_ENV because the environment is not exported
> when executing the libbacktrace configure script.
> 
> Use target_configargs to force "libbacktrace_cv_sys_sync=no" when
> executiong the libbacktrace configure script.
> 
> Fixes:
> https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359681
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> [Romain: use target_configargs="libbacktrace_cv_sys_sync=no"]
> Signed-off-by: Romain Naour <romain.naour at gmail.com>
> ---
>  package/gcc/gcc.mk | 8 ++++++++
>  1 file changed, 8 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list