]> git.ipfire.org Git - thirdparty/util-linux.git/commit
autotools: stop using AC_C_BIGENDIAN / WORDS_BIGENDIAN
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 14 Oct 2022 19:54:47 +0000 (21:54 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 14 Oct 2022 20:00:48 +0000 (22:00 +0200)
commit83b418c19c3959b2f23bba6c7cf1316ee6e404ed
tree9e4690454ed0bc79015ca196b224fbbe819411d0
parent4d447c11cfb45a31937d5e57862c403fc68b665a
autotools: stop using AC_C_BIGENDIAN / WORDS_BIGENDIAN

This define is specific to autotools. Not defining the macro will lead
to silently miscompiled code as has happened with the meson build.

Instead use macros provided by the compiler itself. It does not need any
support from the buildsystem and is supported by both gcc and clang.

If a compiler does not support this feature we will get a loud error
instead of silent miscompilation.

Furthermore it probably better supports universal binaries on macOS
which compiles multiple architectures in a single build.
configure.ac
disk-utils/cramfs.h
include/bitops.h
lib/md5.c
lib/sha1.c
libblkid/src/superblocks/minix.c
sys-utils/lscpu.c
tests/helpers/test_sysinfo.c