diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-05 23:55:59 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-04-13 01:56:54 +0200 |
commit | 04852c7374686fe061e589fb028768a539c2920b (patch) | |
tree | 26ac74783d38f21e8752e96309ad7f323ca7769f /autoconf | |
parent | 3267e75c5ddaadc4a3b6e2ce6808f70959678d22 (diff) | |
download | llvm-04852c7374686fe061e589fb028768a539c2920b.tar.gz llvm-04852c7374686fe061e589fb028768a539c2920b.tar.bz2 llvm-04852c7374686fe061e589fb028768a539c2920b.tar.xz |
[Embtk] Give ability to specify default linker hash-style at configure time
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 2fc17f86af..7f62a66ff2 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -488,6 +488,21 @@ AC_ARG_WITH(default-float, AC_DEFINE_UNQUOTED([LLVM_DEFAULT_TARGET_FPU],"$with_default_fpu", [Default FPU to use to all compiler invocations, in case of hard float.]) +dnl Default hash-style to use to all linker invocations. +AC_ARG_WITH(default-hash-style, + AC_ARG_WITH(default-hash-style, + [Default hash-style to use to all linker invocations: gnu, sysv or both.]),, + with_default_hash_style="") +if test "x$with_default_hash_style" != "x" ; then + case "$with_default_hash_style" in + gnu|sysv|both);; + *) + AC_MSG_ERROR([Invalid --with-default-hash-style. Use "sysv", "gnu" or "both"]);; + esac +fi +AC_DEFINE_UNQUOTED([LLVM_DEFAULT_TARGET_HASHSTYLE],"$with_default_hash_style", + [Default hash-style to use to all linker invocations.]) + dnl Check for the endianness of the target AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little])) |