1735
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1736
version_type=freebsd-elf
1739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1740
soname_spec='${libname}${release}${shared_ext}$major'
1741
shlibpath_var=LD_LIBRARY_PATH
1742
hardcode_into_libs=yes
1743
if test "$with_gnu_ld" = yes; then
1744
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1745
shlibpath_overrides_runpath=no
1747
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1748
shlibpath_overrides_runpath=yes
1751
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1755
sys_lib_dlsearch_path_spec='/usr/lib'
1710
1759
version_type=linux
1711
1760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2376
2437
# Let the user override the test.
2377
2438
lt_cv_path_NM="$NM"
2379
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2380
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2382
test -z "$ac_dir" && ac_dir=.
2383
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2384
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2385
# Check to see if the nm accepts a BSD-compat flag.
2386
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2387
# nm: unknown option "B" ignored
2388
# Tru64's nm complains that /dev/null is an invalid object file
2389
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2390
*/dev/null* | *'Invalid file or object type'*)
2391
lt_cv_path_NM="$tmp_nm -B"
2395
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2397
lt_cv_path_NM="$tmp_nm -p"
2440
lt_nm_to_check="${ac_tool_prefix}nm"
2441
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2442
lt_nm_to_check="$lt_nm_to_check nm"
2444
for lt_tmp_nm in $lt_nm_to_check; do
2445
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2446
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2448
test -z "$ac_dir" && ac_dir=.
2449
tmp_nm="$ac_dir/$lt_tmp_nm"
2450
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2451
# Check to see if the nm accepts a BSD-compat flag.
2452
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2453
# nm: unknown option "B" ignored
2454
# Tru64's nm complains that /dev/null is an invalid object file
2455
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2456
*/dev/null* | *'Invalid file or object type'*)
2457
lt_cv_path_NM="$tmp_nm -B"
2401
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2402
continue # so that we can try to find one that supports BSD flags
2461
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2463
lt_cv_path_NM="$tmp_nm -p"
2467
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2468
continue # so that we can try to find one that supports BSD flags
2409
2477
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2411
2479
NM="$lt_cv_path_NM"
2597
2665
_LT_COMPILER_BOILERPLATE
2598
2666
_LT_LINKER_BOILERPLATE
2601
# Check for any special shared library compilation flags.
2603
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2604
if test "$GCC" = no; then
2607
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2611
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2612
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2613
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2615
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2616
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2622
# Check to make sure the static flag actually works.
2624
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2625
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2626
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2628
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2631
2668
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2632
2669
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2633
2670
AC_LIBTOOL_PROG_CC_C_O($1)
2911
2951
_LT_AC_SYS_LIBPATH_AIX
2912
2952
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2914
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2954
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2916
2956
if test "$host_cpu" = ia64; then
2917
2957
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2918
2958
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2919
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2959
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
2921
2961
# Determine the default libpath from the value encoded in an empty executable.
2922
2962
_LT_AC_SYS_LIBPATH_AIX
2925
2965
# -berok will link without error, but may produce a broken library.
2926
2966
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2927
2967
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2928
# -bexpall does not export symbols beginning with underscore (_)
2929
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2930
2968
# Exported symbols can be pulled into shared objects from archives
2931
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2969
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2932
2970
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2933
2971
# This is similar to how AIX traditionally builds its shared libraries.
2934
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2972
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2978
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2979
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2980
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2981
# support --undefined. This deserves some investigation. FIXME
2982
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2984
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2939
2989
case $cc_basename in
3101
3150
hpux10*|hpux11*)
3102
3151
if test $with_gnu_ld = no; then
3152
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3153
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3103
3155
case $host_cpu in
3105
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3106
3157
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3107
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3110
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3113
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3114
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3115
3160
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3119
3164
case $host_cpu in
3121
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3122
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3125
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3126
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3127
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3128
# but as the default
3129
# location of the library.
3166
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3167
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3132
3170
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3227
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3228
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3229
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3230
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3231
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3232
# Instead, shared libraries are loaded at an image base (0x10000000 by
3233
# default) and relocated if they conflict, which is a slow very memory
3234
# consuming and fragmenting process. To avoid this, we pick a random,
3235
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3236
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3237
_LT_AC_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'
3238
_LT_AC_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'
3182
3240
irix5* | irix6*)
3183
3241
case $cc_basename in
3569
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3570
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3614
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3615
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3616
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3617
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3618
runpath_var='LD_RUN_PATH'
3620
case $cc_basename in
3622
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3623
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3626
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3627
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3631
sysv5* | sco3.2v5* | sco5v6*)
3632
# Note: We can NOT use -z defs as we might desire, because we do not
3633
# link with -lc, and that would cause any symbols used from libc to
3634
# always be unresolved, which means just about no library would
3635
# ever link correctly. If we're not using GNU ld we use -z text
3636
# though, which does catch some bad symbols but isn't as heavy-handed
3638
# For security reasons, it is highly recommended that you always
3639
# use absolute paths for naming shared libraries, and exclude the
3640
# DT_RUNPATH tag from executables and libraries. But doing so
3641
# requires that you compile everything twice, which is a pain.
3642
# So that behaviour is only enabled if SCOABSPATH is set to a
3643
# non-empty value in the environment. Most likely only useful for
3644
# creating official distributions of packages.
3645
# This is a hack until libtool officially supports absolute path
3646
# names for shared libraries.
3647
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3648
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3649
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3650
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3651
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3652
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3653
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3654
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3655
runpath_var='LD_RUN_PATH'
3657
case $cc_basename in
3659
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3660
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3663
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3664
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3573
3669
case $cc_basename in
4793
freebsd* | kfreebsd*-gnu | dragonfly*)
4906
freebsd* | dragonfly*)
4794
4907
# FreeBSD uses GNU C++
4796
4909
hpux9* | hpux10* | hpux11*)
4797
4910
case $cc_basename in
4799
4912
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4800
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4913
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4801
4914
if test "$host_cpu" != ia64; then
4802
4915
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4806
4919
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4807
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4920
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4808
4921
case $host_cpu in
4809
4922
hppa*64*|ia64*)
4810
4923
# +Z the default
5184
5305
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5310
# Check to make sure the static flag actually works.
5312
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5313
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5314
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5315
$lt_tmp_static_flag,
5317
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5349
5484
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5351
5486
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5352
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5487
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5353
5488
# If the export-symbols file already is a .def file (1st line
5354
5489
# is EXPORTS), use it as is; otherwise, prepend...
5355
5490
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5358
5493
echo EXPORTS > $output_objdir/$soname.def;
5359
5494
cat $export_symbols >> $output_objdir/$soname.def;
5361
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5496
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5363
5498
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5503
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5504
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5505
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5506
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5507
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5508
# Instead, shared libraries are loaded at an image base (0x10000000 by
5509
# default) and relocated if they conflict, which is a slow very memory
5510
# consuming and fragmenting process. To avoid this, we pick a random,
5511
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5512
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5513
_LT_AC_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'
5514
_LT_AC_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'
5517
linux* | k*bsd*-gnu)
5368
5518
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5370
5520
case $cc_basename,$host_cpu in
5580
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5581
case `$LD -v 2>&1` in
5582
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5583
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5586
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5587
*** reliably create shared libraries on SCO systems. Therefore, libtool
5588
*** is disabling shared libraries support. We urge you to upgrade GNU
5589
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5590
*** your PATH or compiler configuration so that the native linker is
5591
*** used, and then restart.
5596
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5597
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5598
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5599
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5601
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5431
5608
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5561
5740
# Determine the default libpath from the value encoded in an empty executable.
5562
5741
_LT_AC_SYS_LIBPATH_AIX
5563
5742
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5564
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5743
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5566
5745
if test "$host_cpu" = ia64; then
5567
5746
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5568
5747
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5569
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5748
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5571
5750
# Determine the default libpath from the value encoded in an empty executable.
5572
5751
_LT_AC_SYS_LIBPATH_AIX
5575
5754
# -berok will link without error, but may produce a broken library.
5576
5755
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5577
5756
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5578
# -bexpall does not export symbols beginning with underscore (_)
5579
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5580
5757
# Exported symbols can be pulled into shared objects from archives
5581
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5758
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5582
5759
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5583
5760
# This is similar to how AIX traditionally builds its shared libraries.
5584
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5761
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5722
5899
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5903
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5904
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5906
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5908
if test "$with_gnu_ld" = no; then
5909
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5910
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5912
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5913
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5915
# hardcode_minus_L: Not really in the search PATH,
5916
# but as the default location of the library.
5917
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5726
5922
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5727
5923
case $host_cpu in
5729
5925
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5928
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5732
5931
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5736
5935
case $host_cpu in
5738
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5937
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5940
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5741
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5943
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5745
5947
if test "$with_gnu_ld" = no; then
5948
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5949
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5746
5951
case $host_cpu in
5748
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5749
5953
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5750
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5751
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5752
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5755
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5756
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5757
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5759
# hardcode_minus_L: Not really in the search PATH,
5760
# but as the default location of the library.
5761
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5954
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5955
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5764
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5765
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5766
5958
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5767
5959
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5961
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5962
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5963
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5964
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5965
hardcode_runpath_var=yes
5966
runpath_var=LD_RUN_PATH
5969
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5970
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5971
if test "$GCC" = yes; then
5972
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5974
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5976
runpath_var='LD_RUN_PATH'
5977
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5981
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5982
# $CC -shared without GNU ld will not create a library from C++
5983
# object files and a static libstdc++, better avoid it by now
5984
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5985
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5986
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5987
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5988
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5989
runpath_var='LD_RUN_PATH'
6144
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6145
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6146
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6147
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6148
runpath_var='LD_RUN_PATH'
6150
if test "$GCC" = yes; then
6151
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6152
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6154
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6155
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6159
sysv5* | sco3.2v5* | sco5v6*)
6160
# Note: We can NOT use -z defs as we might desire, because we do not
6161
# link with -lc, and that would cause any symbols used from libc to
6162
# always be unresolved, which means just about no library would
6163
# ever link correctly. If we're not using GNU ld we use -z text
6164
# though, which does catch some bad symbols but isn't as heavy-handed
6166
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6167
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6168
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6169
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6170
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6171
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6172
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6173
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6174
runpath_var='LD_RUN_PATH'
6176
if test "$GCC" = yes; then
6177
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6178
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6180
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6181
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'