aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conftest.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/conftest.c b/conftest.c
index 9eae11a..53c181c 100644
--- a/conftest.c
+++ b/conftest.c
@@ -21,7 +21,15 @@
#endif
/* Define calling convention and ABI */
-#define TRIPLET_ABI "gnu"
+#if defined (__ARM_EABI__)
+# if defined (__ARM_PCS_VFP)
+# define TRIPLET_ABI "gnueabihf"
+# else
+# define TRIPLET_ABI "gnueabi"
+# endif
+#else
+# define TRIPLET_ABI "gnu"
+#endif
#ifdef __GNU__
# define TRIPLET TRIPLET_ARCH "-" TRIPLET_ABI