From 7c61d77dc58831d3f47753c7454b66a788727e71 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Tue, 7 May 2013 22:01:37 +0200 Subject: [Embtk]: Give ability to specify default target ABI at configure time Signed-off-by: Abdoulaye Walsimou Gaye (cherry picked from commit 6ab8513df36438aa2c16facc94f306891446e061) --- autoconf/configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'autoconf') diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 118bf9488a..13baa3e492 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -485,6 +485,14 @@ if test "x$with_default_hash_style" != "x" ; then [Default hash-style to use to all linker invocations.]) fi +dnl Default cpu (-mabi=abi) to use to all compiler invocations +AC_ARG_WITH(default-abi, + AS_HELP_STRING([--with-default-abi], + [Add by default -mabi=abi (if --with-default-abi=abi) to all compiler invocations.]),, + with_default_abi="") +AC_DEFINE_UNQUOTED([LLVM_DEFAULT_TARGET_ABI],"$with_default_abi", + [Add by default -mabi=abi to all compiler invocations.]) + dnl Check for the endianness of the target AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little])) -- cgit v1.2.3