diff options
author | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> | 2017-03-02 01:51:11 +0100 |
---|---|---|
committer | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> | 2017-03-02 01:51:11 +0100 |
commit | 202145c07a031f729982d4cacf05411b9819e78a (patch) | |
tree | 5eb140e5b4b4482598b81fc8c93f5dbc1abf38c7 /src/basic/architecture.h | |
parent | basic/architecture: Properly set LIB_ARCH_TUPLE for x32 (diff) | |
download | systemd-202145c07a031f729982d4cacf05411b9819e78a.tar.xz systemd-202145c07a031f729982d4cacf05411b9819e78a.zip |
basic/architecture: Properly set LIB_ARCH_TUPLE for powerpcspe
On powerpc, there are two possible ABIs and hence values for
LIB_ARCH_TUPLE. The convential type with an FPU and the embedded
variant, called powerpcspe, which does not have a convential FPU
but a special Signal Processing Engine (SPE). The latter can be
detected by checking whether __NO_FPRS__ is defined.
Diffstat (limited to '')
-rw-r--r-- | src/basic/architecture.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/basic/architecture.h b/src/basic/architecture.h index d07bc411e5..f0de76f3fa 100644 --- a/src/basic/architecture.h +++ b/src/basic/architecture.h @@ -101,7 +101,11 @@ int uname_architecture(void); #elif defined(__powerpc__) # if __BYTE_ORDER == __BIG_ENDIAN # define native_architecture() ARCHITECTURE_PPC -# define LIB_ARCH_TUPLE "powerpc-linux-gnu" +# if defined(__NO_FPRS__) +# define LIB_ARCH_TUPLE "powerpc-linux-gnuspe" +# else +# define LIB_ARCH_TUPLE "powerpc-linux-gnu" +# endif # else # define native_architecture() ARCHITECTURE_PPC_LE # error "Missing LIB_ARCH_TUPLE for PPCLE" |