Add arm ABI detection in conftest.c

master
Thomas Preud'homme 2013-02-14 16:40:16 +01:00
parent b1a8233562
commit b4656f3191
1 changed files with 9 additions and 1 deletions

View File

@ -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