comparison libtool.m4 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1077 # the location of the communication and MPI libs are included too. 1077 # the location of the communication and MPI libs are included too.
1078 # If we don't find anything, use the default library path according 1078 # If we don't find anything, use the default library path according
1079 # to the aix ld manual. 1079 # to the aix ld manual.
1080 m4_defun([_LT_SYS_MODULE_PATH_AIX], 1080 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1081 [m4_require([_LT_DECL_SED])dnl 1081 [m4_require([_LT_DECL_SED])dnl
1082 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 1082 AC_LINK_IFELSE([AC_LANG_SOURCE([AC_LANG_PROGRAM])],[
1083 lt_aix_libpath_sed=' 1083 lt_aix_libpath_sed='
1084 /Import File Strings/,/^$/ { 1084 /Import File Strings/,/^$/ {
1085 /^0/ { 1085 /^0/ {
1086 s/^0 *\(.*\)$/\1/ 1086 s/^0 *\(.*\)$/\1/
1087 p 1087 p
2447 linux*oldld* | linux*aout* | linux*coff*) 2447 linux*oldld* | linux*aout* | linux*coff*)
2448 dynamic_linker=no 2448 dynamic_linker=no
2449 ;; 2449 ;;
2450 2450
2451 # This must be Linux ELF. 2451 # This must be Linux ELF.
2452 linux* | k*bsd*-gnu | kopensolaris*-gnu) 2452
2453 # uclinux* changes (here and below) have been submitted to the libtool
2454 # project, but have not yet been accepted: they are GCC-local changes
2455 # for the time being. (See
2456 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
2457 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
2453 version_type=linux 2458 version_type=linux
2454 need_lib_prefix=no 2459 need_lib_prefix=no
2455 need_version=no 2460 need_version=no
2456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2457 soname_spec='${libname}${release}${shared_ext}$major' 2462 soname_spec='${libname}${release}${shared_ext}$major'
3087 esac 3092 esac
3088 lt_cv_deplibs_check_method=pass_all 3093 lt_cv_deplibs_check_method=pass_all
3089 ;; 3094 ;;
3090 3095
3091 # This must be Linux ELF. 3096 # This must be Linux ELF.
3092 linux* | k*bsd*-gnu | kopensolaris*-gnu) 3097 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
3093 lt_cv_deplibs_check_method=pass_all 3098 lt_cv_deplibs_check_method=pass_all
3094 ;; 3099 ;;
3095 3100
3096 netbsd*) 3101 netbsd*)
3097 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4447 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 4452 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4448 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4453 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4449 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4454 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4450 ;; 4455 ;;
4451 4456
4452 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 4457 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
4453 tmp_diet=no 4458 tmp_diet=no
4454 if test "$host_os" = linux-dietlibc; then 4459 if test "$host_os" = linux-dietlibc; then
4455 case $cc_basename in 4460 case $cc_basename in
4456 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 4461 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4457 esac 4462 esac
4930 # Try to use the -exported_symbol ld option, if it does not 4935 # Try to use the -exported_symbol ld option, if it does not
4931 # work, assume that -exports_file does not work either and 4936 # work, assume that -exports_file does not work either and
4932 # implicitly export all symbols. 4937 # implicitly export all symbols.
4933 save_LDFLAGS="$LDFLAGS" 4938 save_LDFLAGS="$LDFLAGS"
4934 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 4939 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4935 AC_LINK_IFELSE(int foo(void) {}, 4940 AC_LINK_IFELSE([AC_LANG_SOURCE([int foo(void) {}])],
4936 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 4941 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4937 ) 4942 )
4938 LDFLAGS="$save_LDFLAGS" 4943 LDFLAGS="$save_LDFLAGS"
4939 else 4944 else
4940 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 4945 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'