Skip to content

Commit 83f8824

Browse files
committed
Support bitrig in autoconf build system.
Patch by Dave Huseby. llvm-svn: 230669
1 parent 9fde2e0 commit 83f8824

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

llvm/autoconf/config.sub

+1-1
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ case $os in
13541354
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13551355
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13561356
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1357-
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1357+
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -bitrig*)
13581358
# Remember, each alternative MUST END IN *, to match a version number.
13591359
;;
13601360
-qnx*)

llvm/autoconf/configure.ac

+7
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ AC_CACHE_CHECK([type of operating system we're going to host on],
267267
llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
268268
llvm_cv_os_type="DragonFly"
269269
llvm_cv_platform_type="Unix" ;;
270+
*-*-bitrig*)
271+
llvm_cv_link_all_option="-Wl,--whole-archive"
272+
llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
273+
llvm_cv_os_type="Bitrig"
274+
llvm_cv_platform_type="Unix" ;;
270275
*-*-hpux*)
271276
llvm_cv_link_all_option="-Wl,--whole-archive"
272277
llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
@@ -347,6 +352,8 @@ AC_CACHE_CHECK([type of operating system we're going to target],
347352
llvm_cv_target_os_type="NetBSD" ;;
348353
*-*-dragonfly*)
349354
llvm_cv_target_os_type="DragonFly" ;;
355+
*-*-bitrig*)
356+
llvm_cv_target_os_type="Bitrig" ;;
350357
*-*-hpux*)
351358
llvm_cv_target_os_type="HP-UX" ;;
352359
*-*-interix*)

llvm/configure

+7
Original file line numberDiff line numberDiff line change
@@ -3966,6 +3966,11 @@ else
39663966
llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
39673967
llvm_cv_os_type="DragonFly"
39683968
llvm_cv_platform_type="Unix" ;;
3969+
*-*-bitrig*)
3970+
llvm_cv_link_all_option="-Wl,--whole-archive"
3971+
llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972+
llvm_cv_os_type="Bitrig"
3973+
llvm_cv_platform_type="Unix" ;;
39693974
*-*-hpux*)
39703975
llvm_cv_link_all_option="-Wl,--whole-archive"
39713976
llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
@@ -4052,6 +4057,8 @@ else
40524057
llvm_cv_target_os_type="NetBSD" ;;
40534058
*-*-dragonfly*)
40544059
llvm_cv_target_os_type="DragonFly" ;;
4060+
*-*-bitrig*)
4061+
llvm_cv_target_os_type="Bitrig" ;;
40554062
*-*-hpux*)
40564063
llvm_cv_target_os_type="HP-UX" ;;
40574064
*-*-interix*)

0 commit comments

Comments
 (0)