diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-22 14:01:18 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-22 14:01:18 +0000 |
commit | f613919fea56ffb52e23d456bef87c00a3dcf01d (patch) | |
tree | 7f0d455ad75343626a393aeaa6ad6389f1f30706 /autoconf | |
parent | 51f40a725b4d0bb9ee7a59edc3d2b2392ae9e852 (diff) | |
download | external_llvm-f613919fea56ffb52e23d456bef87c00a3dcf01d.zip external_llvm-f613919fea56ffb52e23d456bef87c00a3dcf01d.tar.gz external_llvm-f613919fea56ffb52e23d456bef87c00a3dcf01d.tar.bz2 |
Add configure support for kfreebsd and hurd. Patch by Sylvestre Ledru.
Fixes pr11620.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147143 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index d90f99f..7de8a56 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -189,7 +189,7 @@ AC_CACHE_CHECK([type of operating system we're going to host on], llvm_cv_no_link_all_option="-Wl,-noall_load" llvm_cv_os_type="Minix" llvm_cv_platform_type="Unix" ;; - *-*-freebsd*) + *-*-freebsd* | *-*-kfreebsd-gnu) llvm_cv_link_all_option="-Wl,--whole-archive" llvm_cv_no_link_all_option="-Wl,--no-whole-archive" llvm_cv_os_type="FreeBSD" @@ -224,6 +224,11 @@ AC_CACHE_CHECK([type of operating system we're going to host on], llvm_cv_no_link_all_option="-Wl,--no-whole-archive" llvm_cv_os_type="Linux" llvm_cv_platform_type="Unix" ;; + *-*-gnu*) + llvm_cv_link_all_option="-Wl,--whole-archive" + llvm_cv_no_link_all_option="-Wl,--no-whole-archive" + llvm_cv_os_type="GNU" + llvm_cv_platform_type="Unix" ;; *-*-solaris*) llvm_cv_link_all_option="-Wl,-z,allextract" llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |