From b4656f3191a9e26aa99a42f3b379a5e2c1451d51 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 14 Feb 2013 16:40:16 +0100 Subject: [PATCH] Add arm ABI detection in conftest.c --- conftest.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/conftest.c b/conftest.c index 9eae11a5..53c181c3 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