[Buildroot] [PATCH] package/apitrace: fix build failure on m68k architecture
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Jan 30 21:55:57 UTC 2022
On Sat, 29 Jan 2022 19:34:26 +0100
Giulio Benetti <giulio.benetti at benettiengineering.com> wrote:
> apitrace uses very big switch statements, which causes the build to fail
> on m68k, because the offsets there are only 16-bit.
>
> We fix that by using -mlong-jump-table-offsets on m68k, to use 32-bit
> offsets for switch statements. That flag is available on gcc version >= 7
> but apitrace package already depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7, so
> we can use it with no problem.
>
> Fixes:
> http://autobuild.buildroot.net/results/7306bf05962fec30fbe98b1eb8ee09b3162b8080/
>
> Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
> ---
> package/apitrace/apitrace.mk | 5 +++++
> 1 file changed, 5 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