Add arm ABI detection in conftest.c

This commit is contained in:
Thomas Preud'homme 2013-02-14 16:40:16 +01:00
parent b1a8233562
commit b4656f3191

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