summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-03 15:50:53 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-03 15:50:53 +0200
commit0881d7af14eb6105d825c3a32a1f8ad11ed5d092 (patch)
tree762f6a7d861e91eb332007110d35522ff7663b64 /src/shared
parent55ebf98cbecdad288ba2e3f63f7026280c62f025 (diff)
shared: add LIB_ARCH tuples for BE ARM archs
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/architecture.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/shared/architecture.h b/src/shared/architecture.h
index 6a3f0b2d4b..7163d1fcaf 100644
--- a/src/shared/architecture.h
+++ b/src/shared/architecture.h
@@ -143,13 +143,16 @@ Architecture uname_architecture(void);
#elif defined(__arm__)
# if defined(WORDS_BIGENDIAN)
# define native_architecture() ARCHITECTURE_ARM_BE
-# error "Missing LIB_ARCH_TUPLE for ARM_BE"
+# if defined(__ARM_PCS_VFP)
+# define LIB_ARCH_TUPLE "armeb-linux-gnueabihf"
+# else
+# define LIB_ARCH_TUPLE "armeb-linux-gnueabi"
+# endif
# else
+# define native_architecture() ARCHITECTURE_ARM
# if defined(__ARM_PCS_VFP)
-# define native_architecture() ARCHITECTURE_ARM
# define LIB_ARCH_TUPLE "arm-linux-gnueabihf"
# else
-# define native_architecture() ARCHITECTURE_ARM
# define LIB_ARCH_TUPLE "arm-linux-gnueabi"
# endif
# endif