summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-03 09:03:16 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-03 09:03:16 -0400
commitfd3b401e5d3d377f134e77bb3969088130f9f37c (patch)
tree05e7ddd7ef3f9205f968e1c1c7d18de99b0cca2a /src/shared
parent9b3a0ba3e9e28382a1072bf0e2c07a3661432743 (diff)
architecture: add tuples for arm
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/architecture.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/shared/architecture.h b/src/shared/architecture.h
index 08079244dc..b94adae885 100644
--- a/src/shared/architecture.h
+++ b/src/shared/architecture.h
@@ -142,8 +142,13 @@ Architecture uname_architecture(void);
# define native_architecture() ARCHITECTURE_ARM_BE
# error "Missing ARCH_TUPLE for ARM_BE"
# else
-# define native_architecture() ARCHITECTURE_ARM
-# error "Missing ARCH_TUPLE for ARM"
+# if defined(__ARM_PCS_VFP)
+# define native_architecture() ARCHITECTURE_ARM
+# define ARCH_TUPLE "arm-linux-gnueabihf"
+# else
+# define native_architecture() ARCHITECTURE_ARM
+# define ARCH_TUPLE "arm-linux-gnueabi"
+# endif
# endif
#elif defined(__sh64__)
# define native_architecture() ARCHITECTURE_SH64