summaryrefslogtreecommitdiffstats
path: root/llvm/configure
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2013-07-01 08:07:52 +0000
committerSylvestre Ledru <sylvestre@debian.org>2013-07-01 08:07:52 +0000
commit93a491bbf4ea9cfcde71d9d78e92488254878667 (patch)
treec9f8d6530c5bd2c96e14ad41419d1760e560a744 /llvm/configure
parent9319db2ce94748dbf5bf76ed7c4997254bab3203 (diff)
downloadbcm5719-llvm-93a491bbf4ea9cfcde71d9d78e92488254878667.tar.gz
bcm5719-llvm-93a491bbf4ea9cfcde71d9d78e92488254878667.zip
The build system is currently miss-identifying GNU/kFreeBSD as FreeBSD.
This kind of simplification is sometimes useful, but in general it's not correct. As GNU/kFreeBSD is an hybrid system, for kernel-related issues we want to match the build definitions used for FreeBSD, whereas for userland-related issues we want to match the definitions used for other systems with Glibc. The current modification adjusts the build system so that they can be distinguished, and explicitly adds GNU/kFreeBSD to the build checks in which it belongs. Fixes bug #16444. Patch by Robert Millan in the context of Debian. llvm-svn: 185311
Diffstat (limited to 'llvm/configure')
-rwxr-xr-xllvm/configure11
1 files changed, 9 insertions, 2 deletions
diff --git a/llvm/configure b/llvm/configure
index 48ff01d38b0..4d14309e947 100755
--- a/llvm/configure
+++ b/llvm/configure
@@ -3826,11 +3826,16 @@ else
llvm_cv_no_link_all_option="-Wl,-noall_load"
llvm_cv_os_type="Minix"
llvm_cv_platform_type="Unix" ;;
- *-*-freebsd* | *-*-kfreebsd-gnu)
+ *-*-freebsd*)
llvm_cv_link_all_option="-Wl,--whole-archive"
llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
llvm_cv_os_type="FreeBSD"
llvm_cv_platform_type="Unix" ;;
+ *-*-kfreebsd-gnu)
+ llvm_cv_link_all_option="-Wl,--whole-archive"
+ llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
+ llvm_cv_os_type="GNU/kFreeBSD"
+ llvm_cv_platform_type="Unix" ;;
*-*-openbsd*)
llvm_cv_link_all_option="-Wl,--whole-archive"
llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
@@ -3927,8 +3932,10 @@ else
llvm_cv_target_os_type="Darwin" ;;
*-*-minix*)
llvm_cv_target_os_type="Minix" ;;
- *-*-freebsd* | *-*-kfreebsd-gnu)
+ *-*-freebsd*)
llvm_cv_target_os_type="FreeBSD" ;;
+ *-*-kfreebsd-gnu)
+ llvm_cv_target_os_type="GNU/kFreeBSD" ;;
*-*-openbsd*)
llvm_cv_target_os_type="OpenBSD" ;;
*-*-netbsd*)
OpenPOWER on IntegriCloud