From 9724f72e8bff6e9b4b756fbf4cbddc38f73ecab6 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 28 Oct 2022 11:32:30 +0200 Subject: [PATCH] build: Fix endian check for cross build The endian check is supposed to figure it the ordering on the machine which the binary will run on. Hence we need to check the host not the build machine. Signed-off-by: Daniel Wagner --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 03bd6b7f..52128d9f 100644 --- a/meson.build +++ b/meson.build @@ -124,12 +124,12 @@ conf.set10( ) conf.set10( 'HAVE_LITTLE_ENDIAN', - build_machine.endian() == 'little', + host_machine.endian() == 'little', description: 'Building for little-endian' ) conf.set10( 'HAVE_BIG_ENDIAN', - build_machine.endian() == 'big', + host_machine.endian() == 'big', description: 'Building for big-endian' ) conf.set10( -- 2.50.1