llvm.org GIT mirror llvm / 360fa9a
Handle newer cases for freebsd which is approaching 10.0 and not 1.0. Patch by Dimitry Andric! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142995 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 7 years ago
6 changed file(s) with 26 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
46674667 # linked before any other PIC object. But we must not use
46684668 # pic_flag when linking with -static. The problem exists in
46694669 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4670 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4670 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
46714671 case "$compile_command " in
46724672 *" -static "*) ;;
46734673 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
13831383 shlibpath_var=LD_LIBRARY_PATH
13841384 ;;
13851385
1386 freebsd1*)
1386 freebsd1.*)
13871387 dynamic_linker=no
13881388 ;;
13891389
14061406 objformat=`/usr/bin/objformat`
14071407 else
14081408 case $host_os in
1409 freebsd[[123]]*) objformat=aout ;;
1409 freebsd[[123]].*) objformat=aout ;;
14101410 *) objformat=elf ;;
14111411 esac
14121412 fi
14241424 esac
14251425 shlibpath_var=LD_LIBRARY_PATH
14261426 case $host_os in
1427 freebsd2*)
1427 freebsd2.*)
14281428 shlibpath_overrides_runpath=yes
14291429 ;;
14301430 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
30983098 ;;
30993099 esac
31003100 ;;
3101 freebsd[[12]]*)
3101 freebsd[[12]].*)
31023102 # C++ shared libraries reported to be fairly broken before switch to ELF
31033103 _LT_AC_TAGVAR(ld_shlibs, $1)=no
31043104 ;;
58575857 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
58585858 ;;
58595859
5860 freebsd1*)
5860 freebsd1.*)
58615861 _LT_AC_TAGVAR(ld_shlibs, $1)=no
58625862 ;;
58635863
58735873 ;;
58745874
58755875 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5876 freebsd2*)
5876 freebsd2.*)
58775877 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
58785878 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
58795879 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
14151415 --enable-targets Build specific host targets: all or
14161416 target1,target2,... Valid targets are: host, x86,
14171417 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1418 xcore, msp430, ptx, cbe, and cpp
1419 (default=all)
1418 xcore, msp430, ptx, cbe, and cpp (default=all)
14201419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
14211420 %a (default is YES)
14221421 --enable-bindings Build specific language bindings:
89058904 shlibpath_var=LD_LIBRARY_PATH
89068905 ;;
89078906
8908 freebsd1*)
8907 freebsd1.*)
89098908 dynamic_linker=no
89108909 ;;
89118910
89288927 objformat=`/usr/bin/objformat`
89298928 else
89308929 case $host_os in
8931 freebsd[123]*) objformat=aout ;;
8930 freebsd[123].*) objformat=aout ;;
89328931 *) objformat=elf ;;
89338932 esac
89348933 fi
89468945 esac
89478946 shlibpath_var=LD_LIBRARY_PATH
89488947 case $host_os in
8949 freebsd2*)
8948 freebsd2.*)
89508949 shlibpath_overrides_runpath=yes
89518950 ;;
89528951 freebsd3.[01]* | freebsdelf3.[01]*)
1046010459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1046110460 lt_status=$lt_dlunknown
1046210461 cat > conftest.$ac_ext <
10463 #line 10474 "configure"
10462 #line 10463 "configure"
1046410463 #include "confdefs.h"
1046510464
1046610465 #if HAVE_DLFCN_H
2105921058
2106021059 ac_config_files="$ac_config_files Makefile.config"
2106121060
21061
2106221062 ac_config_files="$ac_config_files llvm.spec"
2106321063
2106421064
2107121071
2107221072 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
2107321073
21074
2107421075 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21076
2107521077
2107621078 ac_config_commands="$ac_config_commands setup"
2107721079
2169021692 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
2169121693 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
2169221694 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21695 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
2169321696 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
2169421697 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
2169521698 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
665665 /* Define to 1 if the `S_IS*' macros in do not work properly. */
666666 #undef STAT_MACROS_BROKEN
667667
668 /* Define to 1 if you have the ANSI C header files. */
669 #undef STDC_HEADERS
670
668671 /* Define to 1 if you can safely include both and . */
669672 #undef TIME_WITH_SYS_TIME
670673
46674667 # linked before any other PIC object. But we must not use
46684668 # pic_flag when linking with -static. The problem exists in
46694669 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4670 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4670 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
46714671 case "$compile_command " in
46724672 *" -static "*) ;;
46734673 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
13831383 shlibpath_var=LD_LIBRARY_PATH
13841384 ;;
13851385
1386 freebsd1*)
1386 freebsd1.*)
13871387 dynamic_linker=no
13881388 ;;
13891389
14061406 objformat=`/usr/bin/objformat`
14071407 else
14081408 case $host_os in
1409 freebsd[[123]]*) objformat=aout ;;
1409 freebsd[[123]].*) objformat=aout ;;
14101410 *) objformat=elf ;;
14111411 esac
14121412 fi
14241424 esac
14251425 shlibpath_var=LD_LIBRARY_PATH
14261426 case $host_os in
1427 freebsd2*)
1427 freebsd2.*)
14281428 shlibpath_overrides_runpath=yes
14291429 ;;
14301430 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
30983098 ;;
30993099 esac
31003100 ;;
3101 freebsd[[12]]*)
3101 freebsd[[12]].*)
31023102 # C++ shared libraries reported to be fairly broken before switch to ELF
31033103 _LT_AC_TAGVAR(ld_shlibs, $1)=no
31043104 ;;
58575857 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
58585858 ;;
58595859
5860 freebsd1*)
5860 freebsd1.*)
58615861 _LT_AC_TAGVAR(ld_shlibs, $1)=no
58625862 ;;
58635863
58735873 ;;
58745874
58755875 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5876 freebsd2*)
5876 freebsd2.*)
58775877 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
58785878 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
58795879 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes