summaryrefslogtreecommitdiffstats
path: root/llvm/projects
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2012-04-05 19:34:15 +0000
committerSylvestre Ledru <sylvestre@debian.org>2012-04-05 19:34:15 +0000
commite8235fef3197e199ffd390eaf0e7cd039338c6a4 (patch)
treedfe4f89abc65c58ecabab98a202639c421c3fdf9 /llvm/projects
parent26f19678b6303ccc7cc80536399d7eca24583872 (diff)
downloadbcm5719-llvm-e8235fef3197e199ffd390eaf0e7cd039338c6a4.tar.gz
bcm5719-llvm-e8235fef3197e199ffd390eaf0e7cd039338c6a4.zip
Fix a problem in the target detection for Debian GNU/HURD
llvm-svn: 154117
Diffstat (limited to 'llvm/projects')
-rw-r--r--llvm/projects/sample/autoconf/configure.ac7
-rwxr-xr-xllvm/projects/sample/configure7
2 files changed, 14 insertions, 0 deletions
diff --git a/llvm/projects/sample/autoconf/configure.ac b/llvm/projects/sample/autoconf/configure.ac
index a30cf96ecb9..c3a49d5b12e 100644
--- a/llvm/projects/sample/autoconf/configure.ac
+++ b/llvm/projects/sample/autoconf/configure.ac
@@ -167,6 +167,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"
@@ -236,6 +241,8 @@ AC_CACHE_CHECK([type of operating system we're going to target],
llvm_cv_target_os_type="Interix" ;;
*-*-linux*)
llvm_cv_target_os_type="Linux" ;;
+ *-*-gnu*)
+ llvm_cv_target_os_type="GNU" ;;
*-*-solaris*)
llvm_cv_target_os_type="SunOS" ;;
*-*-auroraux*)
diff --git a/llvm/projects/sample/configure b/llvm/projects/sample/configure
index 28fba4107e3..7c5e2ee37db 100755
--- a/llvm/projects/sample/configure
+++ b/llvm/projects/sample/configure
@@ -3681,6 +3681,11 @@ else
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"
@@ -3756,6 +3761,8 @@ else
llvm_cv_target_os_type="Interix" ;;
*-*-linux*)
llvm_cv_target_os_type="Linux" ;;
+ *-*-gnu*)
+ llvm_cv_target_os_type="GNU" ;;
*-*-solaris*)
llvm_cv_target_os_type="SunOS" ;;
*-*-auroraux*)
OpenPOWER on IntegriCloud