aboutsummaryrefslogtreecommitdiffstats
path: root/projects
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2012-04-05 18:53:09 +0000
committerSylvestre Ledru <sylvestre@debian.org>2012-04-05 18:53:09 +0000
commit1d7e8c6148a4356c16745f6496c38c737bd37c02 (patch)
treea041100b4625c8a0cb17d0c6b0c5459655a711f7 /projects
parentd7484e5d9b25fe907cdad283659fcdeb5c73060f (diff)
downloadexternal_llvm-1d7e8c6148a4356c16745f6496c38c737bd37c02.zip
external_llvm-1d7e8c6148a4356c16745f6496c38c737bd37c02.tar.gz
external_llvm-1d7e8c6148a4356c16745f6496c38c737bd37c02.tar.bz2
Fix a problem in the target detection for Debian GNU/kFreeBSD
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects')
-rw-r--r--projects/sample/autoconf/configure.ac4
-rwxr-xr-xprojects/sample/configure4
2 files changed, 4 insertions, 4 deletions
diff --git a/projects/sample/autoconf/configure.ac b/projects/sample/autoconf/configure.ac
index 6792f17..a30cf96 100644
--- a/projects/sample/autoconf/configure.ac
+++ b/projects/sample/autoconf/configure.ac
@@ -132,7 +132,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"
@@ -222,7 +222,7 @@ AC_CACHE_CHECK([type of operating system we're going to target],
llvm_cv_target_os_type="Darwin" ;;
*-*-minix*)
llvm_cv_target_os_type="Minix" ;;
- *-*-freebsd*)
+ *-*-freebsd* | *-*-kfreebsd-gnu)
llvm_cv_target_os_type="FreeBSD" ;;
*-*-openbsd*)
llvm_cv_target_os_type="OpenBSD" ;;
diff --git a/projects/sample/configure b/projects/sample/configure
index 48c0c2a..28fba41 100755
--- a/projects/sample/configure
+++ b/projects/sample/configure
@@ -3646,7 +3646,7 @@ else
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"
@@ -3742,7 +3742,7 @@ else
llvm_cv_target_os_type="Darwin" ;;
*-*-minix*)
llvm_cv_target_os_type="Minix" ;;
- *-*-freebsd*)
+ *-*-freebsd* | *-*-kfreebsd-gnu)
llvm_cv_target_os_type="FreeBSD" ;;
*-*-openbsd*)
llvm_cv_target_os_type="OpenBSD" ;;