977 |
# soname into executable. Probably we can add versioning support to |
# soname into executable. Probably we can add versioning support to |
978 |
# collect2, so additional links can be useful in future. |
# collect2, so additional links can be useful in future. |
979 |
if test "$aix_use_runtimelinking" = yes; then |
if test "$aix_use_runtimelinking" = yes; then |
980 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
981 |
# lib<name>.a to let people know that these are not typical AIX shared libraries. |
# instead of lib<name>.a to let people know that these are not |
982 |
|
# typical AIX shared libraries. |
983 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
984 |
else |
else |
985 |
# We preserve .a as extension for shared libraries through AIX4.2 |
# We preserve .a as extension for shared libraries through AIX4.2 |
1851 |
# This must be Linux ELF. |
# This must be Linux ELF. |
1852 |
linux*) |
linux*) |
1853 |
case $host_cpu in |
case $host_cpu in |
1854 |
alpha* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* ) |
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* ) |
1855 |
lt_cv_deplibs_check_method=pass_all ;; |
lt_cv_deplibs_check_method=pass_all ;; |
1856 |
*) |
*) |
1857 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
# glibc up to 2.1.1 does not perform some relocations on ARM |
2557 |
# NetBSD uses g++ - do we need to do anything? |
# NetBSD uses g++ - do we need to do anything? |
2558 |
;; |
;; |
2559 |
osf3*) |
osf3*) |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
|
|
|
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
|
|
|
# Commands to make compiler produce verbose output that lists |
|
|
# what "hidden" libraries, object files and flags are used when |
|
|
# linking a shared library. |
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
|
|
fi |
|
|
|
|
2560 |
case $cc_basename in |
case $cc_basename in |
2561 |
KCC) |
KCC) |
2562 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
2597 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
2598 |
;; |
;; |
2599 |
*) |
*) |
2600 |
# FIXME: insert proper C++ library support |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
2601 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
2602 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
2603 |
|
|
2604 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2605 |
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2606 |
|
|
2607 |
|
# Commands to make compiler produce verbose output that lists |
2608 |
|
# what "hidden" libraries, object files and flags are used when |
2609 |
|
# linking a shared library. |
2610 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
2611 |
|
|
2612 |
|
else |
2613 |
|
# FIXME: insert proper C++ library support |
2614 |
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2615 |
|
fi |
2616 |
;; |
;; |
2617 |
esac |
esac |
2618 |
;; |
;; |
2619 |
osf4* | osf5*) |
osf4* | osf5*) |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
|
|
|
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
|
|
|
# Commands to make compiler produce verbose output that lists |
|
|
# what "hidden" libraries, object files and flags are used when |
|
|
# linking a shared library. |
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
|
|
fi |
|
|
|
|
2620 |
case $cc_basename in |
case $cc_basename in |
2621 |
KCC) |
KCC) |
2622 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
2660 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
2661 |
;; |
;; |
2662 |
*) |
*) |
2663 |
# FIXME: insert proper C++ library support |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
2664 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
2665 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
2666 |
|
|
2667 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2668 |
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2669 |
|
|
2670 |
|
# Commands to make compiler produce verbose output that lists |
2671 |
|
# what "hidden" libraries, object files and flags are used when |
2672 |
|
# linking a shared library. |
2673 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
2674 |
|
|
2675 |
|
else |
2676 |
|
# FIXME: insert proper C++ library support |
2677 |
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2678 |
|
fi |
2679 |
;; |
;; |
2680 |
esac |
esac |
2681 |
;; |
;; |
4257 |
;; |
;; |
4258 |
|
|
4259 |
hpux9* | hpux10* | hpux11*) |
hpux9* | hpux10* | hpux11*) |
4260 |
case $host_os in |
if test $with_gcc = yes; then |
4261 |
hpux9*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
case $host_os in |
4262 |
*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
hpux9*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
4263 |
esac |
*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; |
4264 |
|
esac |
4265 |
|
else |
4266 |
|
case $host_os in |
4267 |
|
hpux9*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
4268 |
|
*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
4269 |
|
esac |
4270 |
|
fi |
4271 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4272 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4273 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4359 |
|
|
4360 |
solaris*) |
solaris*) |
4361 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z defs' |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z defs' |
4362 |
# $CC -shared without GNU ld will not create a library from C++ |
if test "$with_gcc" = yes; then |
4363 |
# object files and a static libstdc++, better avoid it by now |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4364 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4365 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
4366 |
|
else |
4367 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4368 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4369 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
4370 |
|
fi |
4371 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4372 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4373 |
case $host_os in |
case $host_os in |