mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
basic/architecture: Properly set LIB_ARCH_TUPLE for x32
On x86_64, there are two possible ABIs and hence values for LIB_ARCH_TUPLE. The convential 64-bit type and the 32-bit variant, called x32. The latter can be detected by checking whether __ILP32__ is defined.
This commit is contained in:
parent
4317cf9026
commit
4c7c70c7c2
@ -79,7 +79,11 @@ int uname_architecture(void);
|
||||
|
||||
#if defined(__x86_64__)
|
||||
# define native_architecture() ARCHITECTURE_X86_64
|
||||
# define LIB_ARCH_TUPLE "x86_64-linux-gnu"
|
||||
# if defined(__ILP32__)
|
||||
# define LIB_ARCH_TUPLE "x86_64-linux-gnux32"
|
||||
# else
|
||||
# define LIB_ARCH_TUPLE "x86_64-linux-gnu"
|
||||
# endif
|
||||
# define SECONDARY_ARCHITECTURE ARCHITECTURE_X86
|
||||
#elif defined(__i386__)
|
||||
# define native_architecture() ARCHITECTURE_X86
|
||||
|
Loading…
Reference in New Issue
Block a user