From: Daniel Wagner Date: Fri, 28 Oct 2022 09:32:30 +0000 (+0200) Subject: build: Fix endian check for cross build X-Git-Tag: v2.2~5^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9724f72e8bff6e9b4b756fbf4cbddc38f73ecab6;p=users%2Fsagi%2Fnvme-cli.git 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 --- 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(