comparison libtool.m4 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents f6334be47118
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1004 # to the OS version, if on x86, and 10.4, the deployment 1004 # to the OS version, if on x86, and 10.4, the deployment
1005 # target defaults to 10.4. Don't you love it? 1005 # target defaults to 10.4. Don't you love it?
1006 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1006 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1007 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1007 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1008 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1008 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1009 10.[[012]]*) 1009 10.[[012]][[,.]]*)
1010 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 1010 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1011 10.*) 1011 10.*)
1012 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1012 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1013 esac 1013 esac
1014 ;; 1014 ;;
1218 fi 1218 fi
1219 fi 1219 fi
1220 rm -rf conftest* 1220 rm -rf conftest*
1221 ;; 1221 ;;
1222 1222
1223 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 1223 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1224 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 1224 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1225 # Find out which ABI we are using. 1225 # Find out which ABI we are using.
1226 echo 'int i;' > conftest.$ac_ext 1226 echo 'int i;' > conftest.$ac_ext
1227 if AC_TRY_EVAL(ac_compile); then 1227 if AC_TRY_EVAL(ac_compile); then
1228 case `/usr/bin/file conftest.o` in 1228 case `/usr/bin/file conftest.o` in
1230 case $host in 1230 case $host in
1231 x86_64-*kfreebsd*-gnu) 1231 x86_64-*kfreebsd*-gnu)
1232 LD="${LD-ld} -m elf_i386_fbsd" 1232 LD="${LD-ld} -m elf_i386_fbsd"
1233 ;; 1233 ;;
1234 x86_64-*linux*) 1234 x86_64-*linux*)
1235 LD="${LD-ld} -m elf_i386" 1235 case `/usr/bin/file conftest.o` in
1236 *x86-64*)
1237 LD="${LD-ld} -m elf32_x86_64"
1238 ;;
1239 *)
1240 LD="${LD-ld} -m elf_i386"
1241 ;;
1242 esac
1236 ;; 1243 ;;
1237 ppc64-*linux*|powerpc64-*linux*) 1244 powerpc64le-*linux*)
1245 LD="${LD-ld} -m elf32lppclinux"
1246 ;;
1247 powerpc64-*linux*)
1238 LD="${LD-ld} -m elf32ppclinux" 1248 LD="${LD-ld} -m elf32ppclinux"
1239 ;; 1249 ;;
1240 s390x-*linux*) 1250 s390x-*linux*)
1241 LD="${LD-ld} -m elf_s390" 1251 LD="${LD-ld} -m elf_s390"
1242 ;; 1252 ;;
1251 LD="${LD-ld} -m elf_x86_64_fbsd" 1261 LD="${LD-ld} -m elf_x86_64_fbsd"
1252 ;; 1262 ;;
1253 x86_64-*linux*) 1263 x86_64-*linux*)
1254 LD="${LD-ld} -m elf_x86_64" 1264 LD="${LD-ld} -m elf_x86_64"
1255 ;; 1265 ;;
1256 ppc*-*linux*|powerpc*-*linux*) 1266 powerpcle-*linux*)
1267 LD="${LD-ld} -m elf64lppc"
1268 ;;
1269 powerpc-*linux*)
1257 LD="${LD-ld} -m elf64ppc" 1270 LD="${LD-ld} -m elf64ppc"
1258 ;; 1271 ;;
1259 s390*-*linux*|s390*-*tpf*) 1272 s390*-*linux*|s390*-*tpf*)
1260 LD="${LD-ld} -m elf64_s390" 1273 LD="${LD-ld} -m elf64_s390"
1261 ;; 1274 ;;
2271 # versioning mechanism, adjust this. 2284 # versioning mechanism, adjust this.
2272 if test -x /usr/bin/objformat; then 2285 if test -x /usr/bin/objformat; then
2273 objformat=`/usr/bin/objformat` 2286 objformat=`/usr/bin/objformat`
2274 else 2287 else
2275 case $host_os in 2288 case $host_os in
2276 freebsd[[123]]*) objformat=aout ;; 2289 freebsd[[23]].*) objformat=aout ;;
2277 *) objformat=elf ;; 2290 *) objformat=elf ;;
2278 esac 2291 esac
2279 fi 2292 fi
2280 version_type=freebsd-$objformat 2293 version_type=freebsd-$objformat
2281 case $version_type in 2294 case $version_type in
2289 need_version=yes 2302 need_version=yes
2290 ;; 2303 ;;
2291 esac 2304 esac
2292 shlibpath_var=LD_LIBRARY_PATH 2305 shlibpath_var=LD_LIBRARY_PATH
2293 case $host_os in 2306 case $host_os in
2294 freebsd2*) 2307 freebsd2.*)
2295 shlibpath_overrides_runpath=yes 2308 shlibpath_overrides_runpath=yes
2296 ;; 2309 ;;
2297 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 2310 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2298 shlibpath_overrides_runpath=yes 2311 shlibpath_overrides_runpath=yes
2299 hardcode_into_libs=yes 2312 hardcode_into_libs=yes
3571 # All AIX code is PIC. 3584 # All AIX code is PIC.
3572 if test "$host_cpu" = ia64; then 3585 if test "$host_cpu" = ia64; then
3573 # AIX 5 now supports IA64 processor 3586 # AIX 5 now supports IA64 processor
3574 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3587 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3575 fi 3588 fi
3589 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3576 ;; 3590 ;;
3577 3591
3578 amigaos*) 3592 amigaos*)
3579 case $host_cpu in 3593 case $host_cpu in
3580 powerpc) 3594 powerpc)
3882 # All AIX code is PIC. 3896 # All AIX code is PIC.
3883 if test "$host_cpu" = ia64; then 3897 if test "$host_cpu" = ia64; then
3884 # AIX 5 now supports IA64 processor 3898 # AIX 5 now supports IA64 processor
3885 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3899 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3886 fi 3900 fi
3901 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3887 ;; 3902 ;;
3888 3903
3889 amigaos*) 3904 amigaos*)
3890 case $host_cpu in 3905 case $host_cpu in
3891 powerpc) 3906 powerpc)
4213 # Also, AIX nm treats weak defined symbols like other global defined 4228 # Also, AIX nm treats weak defined symbols like other global defined
4214 # symbols, whereas GNU nm marks them as "W". 4229 # symbols, whereas GNU nm marks them as "W".
4215 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4230 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4216 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4231 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4217 else 4232 else
4218 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4233 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4219 fi 4234 fi
4220 ;; 4235 ;;
4221 pw32*) 4236 pw32*)
4222 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 4237 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4223 ;; 4238 ;;
4442 esac 4457 esac
4443 fi 4458 fi
4444 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 4459 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4445 && test "$tmp_diet" = no 4460 && test "$tmp_diet" = no
4446 then 4461 then
4447 tmp_addflag= 4462 tmp_addflag=' $pic_flag'
4448 tmp_sharedflag='-shared' 4463 tmp_sharedflag='-shared'
4449 case $cc_basename,$host_cpu in 4464 case $cc_basename,$host_cpu in
4450 pgcc*) # Portland Group C compiler 4465 pgcc*) # Portland Group C compiler
4451 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 4466 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4452 tmp_addflag=' $pic_flag' 4467 tmp_addflag=' $pic_flag'
4624 # Also, AIX nm treats weak defined symbols like other global 4639 # Also, AIX nm treats weak defined symbols like other global
4625 # defined symbols, whereas GNU nm marks them as "W". 4640 # defined symbols, whereas GNU nm marks them as "W".
4626 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4641 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4627 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4642 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4628 else 4643 else
4629 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4644 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4630 fi 4645 fi
4631 aix_use_runtimelinking=no 4646 aix_use_runtimelinking=no
4632 4647
4633 # Test if we are trying to use run time linking or normal 4648 # Test if we are trying to use run time linking or normal
4634 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 4649 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4802 _LT_TAGVAR(hardcode_direct, $1)=yes 4817 _LT_TAGVAR(hardcode_direct, $1)=yes
4803 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4818 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4804 ;; 4819 ;;
4805 4820
4806 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 4821 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4807 freebsd2*) 4822 freebsd2.*)
4808 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4823 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4809 _LT_TAGVAR(hardcode_direct, $1)=yes 4824 _LT_TAGVAR(hardcode_direct, $1)=yes
4810 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4825 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4811 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4826 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4812 ;; 4827 ;;
5508 LT_PATH_LD 5523 LT_PATH_LD
5509 5524
5510 # Check if GNU C++ uses GNU ld as the underlying linker, since the 5525 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5511 # archiving commands below assume that GNU ld is being used. 5526 # archiving commands below assume that GNU ld is being used.
5512 if test "$with_gnu_ld" = yes; then 5527 if test "$with_gnu_ld" = yes; then
5513 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5528 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5514 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5529 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5515 5530
5516 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5531 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5517 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5532 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5518 5533
5519 # If archive_cmds runs LD, not CC, wlarc should be empty 5534 # If archive_cmds runs LD, not CC, wlarc should be empty
5749 _LT_TAGVAR(ld_shlibs, $1)=no 5764 _LT_TAGVAR(ld_shlibs, $1)=no
5750 ;; 5765 ;;
5751 esac 5766 esac
5752 ;; 5767 ;;
5753 5768
5754 freebsd[[12]]*) 5769 freebsd2.*)
5755 # C++ shared libraries reported to be fairly broken before 5770 # C++ shared libraries reported to be fairly broken before
5756 # switch to ELF 5771 # switch to ELF
5757 _LT_TAGVAR(ld_shlibs, $1)=no 5772 _LT_TAGVAR(ld_shlibs, $1)=no
5758 ;; 5773 ;;
5759 5774