summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-05 23:55:59 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-10 16:13:57 +0200
commit6fd8eeef7e9cc8e91845097554ad88493aaa9e09 (patch)
tree51e61a5068e56f275212360df16a3a4fd2e40191 /autoconf
parent0bac2ab46d722dd6a6354194903e9b213c80806d (diff)
downloadllvm-6fd8eeef7e9cc8e91845097554ad88493aaa9e09.tar.gz
llvm-6fd8eeef7e9cc8e91845097554ad88493aaa9e09.tar.bz2
llvm-6fd8eeef7e9cc8e91845097554ad88493aaa9e09.tar.xz
[Embtk] Give ability to specify default linker hash-style at configure time
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org> (cherry picked from commit cab4a8d897c586d1f53790fefe16fca91f4d18d1)
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index ffbb33897a..118bf9488a 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -470,6 +470,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
+ AC_DEFINE_UNQUOTED([LLVM_DEFAULT_TARGET_HASHSTYLE],"$with_default_hash_style",
+ [Default hash-style to use to all linker invocations.])
+fi
+
dnl Check for the endianness of the target
AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little]))