summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-03-03 04:55:15 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-03-03 04:55:15 +0000
commit1dace48f538d44156cdb71834e718b9ad93d2711 (patch)
tree270b2b7ef2babda8ccbf13637aa59a4b9ed2d0d9 /autoconf
parent1c08c0e128e3c672dfbf04ce3bfa1c126c6198da (diff)
downloadllvm-1dace48f538d44156cdb71834e718b9ad93d2711.tar.gz
llvm-1dace48f538d44156cdb71834e718b9ad93d2711.tar.bz2
llvm-1dace48f538d44156cdb71834e718b9ad93d2711.tar.xz
Switch to using -Wl,-R on Solaris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 9b852d970f..e58dc66765 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -1016,6 +1016,13 @@ fi
dnl Determine if the compiler supports -fvisibility-inlines-hidden.
AC_CXX_USE_VISIBILITY_INLINES_HIDDEN
+dnl Determine linker rpath flag
+case $llvm_cv_os_type in
+ SunOS) RPATH="-Wl,-R" ;;
+ *) RPATH="-Wl,-rpath" ;;
+esac
+AC_SUBST(RPATH)
+
dnl===-----------------------------------------------------------------------===
dnl===
dnl=== SECTION 10: Specify the output files and generate it