1764
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1765
version_type=freebsd-elf
1768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1769
soname_spec='${libname}${release}${shared_ext}$major'
1770
shlibpath_var=LD_LIBRARY_PATH
1771
hardcode_into_libs=yes
1772
if test "$with_gnu_ld" = yes; then
1773
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1774
shlibpath_overrides_runpath=no
1776
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1777
shlibpath_overrides_runpath=yes
1780
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1784
sys_lib_dlsearch_path_spec='/usr/lib'
1715
1788
version_type=linux
1716
1789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2381
2466
# Let the user override the test.
2382
2467
lt_cv_path_NM="$NM"
2384
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2385
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2387
test -z "$ac_dir" && ac_dir=.
2388
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2389
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2390
# Check to see if the nm accepts a BSD-compat flag.
2391
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2392
# nm: unknown option "B" ignored
2393
# Tru64's nm complains that /dev/null is an invalid object file
2394
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2395
*/dev/null* | *'Invalid file or object type'*)
2396
lt_cv_path_NM="$tmp_nm -B"
2400
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2402
lt_cv_path_NM="$tmp_nm -p"
2469
lt_nm_to_check="${ac_tool_prefix}nm"
2470
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2471
lt_nm_to_check="$lt_nm_to_check nm"
2473
for lt_tmp_nm in $lt_nm_to_check; do
2474
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2475
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2477
test -z "$ac_dir" && ac_dir=.
2478
tmp_nm="$ac_dir/$lt_tmp_nm"
2479
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2480
# Check to see if the nm accepts a BSD-compat flag.
2481
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2482
# nm: unknown option "B" ignored
2483
# Tru64's nm complains that /dev/null is an invalid object file
2484
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2485
*/dev/null* | *'Invalid file or object type'*)
2486
lt_cv_path_NM="$tmp_nm -B"
2406
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2407
continue # so that we can try to find one that supports BSD flags
2490
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2492
lt_cv_path_NM="$tmp_nm -p"
2496
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2497
continue # so that we can try to find one that supports BSD flags
2414
2506
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2416
2508
NM="$lt_cv_path_NM"
2602
2694
_LT_COMPILER_BOILERPLATE
2603
2695
_LT_LINKER_BOILERPLATE
2606
# Check for any special shared library compilation flags.
2608
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2609
if test "$GCC" = no; then
2612
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2616
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2617
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2618
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2620
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2621
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2627
# Check to make sure the static flag actually works.
2629
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2630
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2631
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2633
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2636
2697
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2637
2698
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2638
2699
AC_LIBTOOL_PROG_CC_C_O($1)
2916
2980
_LT_AC_SYS_LIBPATH_AIX
2917
2981
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2919
_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"
2983
_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"
2921
2985
if test "$host_cpu" = ia64; then
2922
2986
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2923
2987
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2924
_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"
2988
_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"
2926
2990
# Determine the default libpath from the value encoded in an empty executable.
2927
2991
_LT_AC_SYS_LIBPATH_AIX
2930
2994
# -berok will link without error, but may produce a broken library.
2931
2995
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2932
2996
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2933
# -bexpall does not export symbols beginning with underscore (_)
2934
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2935
2997
# Exported symbols can be pulled into shared objects from archives
2936
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2998
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2937
2999
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2938
3000
# This is similar to how AIX traditionally builds its shared libraries.
2939
_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'
3001
_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'
3007
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3008
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3009
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3010
# support --undefined. This deserves some investigation. FIXME
3011
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3013
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2944
3018
case $cc_basename in
3106
3179
hpux10*|hpux11*)
3107
3180
if test $with_gnu_ld = no; then
3181
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3182
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3108
3184
case $host_cpu in
3110
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3111
3186
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3112
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3115
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3118
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3119
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3120
3189
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3124
3193
case $host_cpu in
3126
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3127
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3130
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3131
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3132
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3133
# but as the default
3134
# location of the library.
3195
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3196
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3137
3199
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3256
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3257
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3258
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3259
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3260
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3261
# Instead, shared libraries are loaded at an image base (0x10000000 by
3262
# default) and relocated if they conflict, which is a slow very memory
3263
# consuming and fragmenting process. To avoid this, we pick a random,
3264
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3265
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3266
_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'
3267
_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'
3187
3269
irix5* | irix6*)
3188
3270
case $cc_basename in
3574
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3575
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3643
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3644
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3645
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3646
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3647
runpath_var='LD_RUN_PATH'
3649
case $cc_basename in
3651
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3652
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3655
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3656
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3660
sysv5* | sco3.2v5* | sco5v6*)
3661
# Note: We can NOT use -z defs as we might desire, because we do not
3662
# link with -lc, and that would cause any symbols used from libc to
3663
# always be unresolved, which means just about no library would
3664
# ever link correctly. If we're not using GNU ld we use -z text
3665
# though, which does catch some bad symbols but isn't as heavy-handed
3667
# For security reasons, it is highly recommended that you always
3668
# use absolute paths for naming shared libraries, and exclude the
3669
# DT_RUNPATH tag from executables and libraries. But doing so
3670
# requires that you compile everything twice, which is a pain.
3671
# So that behaviour is only enabled if SCOABSPATH is set to a
3672
# non-empty value in the environment. Most likely only useful for
3673
# creating official distributions of packages.
3674
# This is a hack until libtool officially supports absolute path
3675
# names for shared libraries.
3676
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3677
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3678
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3679
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3680
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3681
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3682
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3683
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3684
runpath_var='LD_RUN_PATH'
3686
case $cc_basename in
3688
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3689
_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'
3692
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3693
_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'
3578
3698
case $cc_basename in
4802
4939
case $cc_basename in
4804
4941
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4805
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4942
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4806
4943
if test "$host_cpu" != ia64; then
4807
4944
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4811
4948
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4812
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4949
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4813
4950
case $host_cpu in
4814
4951
hppa*64*|ia64*)
4815
4952
# +Z the default
5189
5334
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5339
# Check to make sure the static flag actually works.
5341
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5342
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5343
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5344
$lt_tmp_static_flag,
5346
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5351
5510
_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'
5353
5512
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5354
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5513
_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'
5355
5514
# If the export-symbols file already is a .def file (1st line
5356
5515
# is EXPORTS), use it as is; otherwise, prepend...
5357
5516
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5360
5519
echo EXPORTS > $output_objdir/$soname.def;
5361
5520
cat $export_symbols >> $output_objdir/$soname.def;
5363
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5522
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5365
5524
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5529
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5530
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5531
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5532
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5533
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5534
# Instead, shared libraries are loaded at an image base (0x10000000 by
5535
# default) and relocated if they conflict, which is a slow very memory
5536
# consuming and fragmenting process. To avoid this, we pick a random,
5537
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5538
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5539
_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'
5540
_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'
5370
5544
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5605
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5606
case `$LD -v 2>&1` in
5607
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5608
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5611
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5612
*** reliably create shared libraries on SCO systems. Therefore, libtool
5613
*** is disabling shared libraries support. We urge you to upgrade GNU
5614
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5615
*** your PATH or compiler configuration so that the native linker is
5616
*** used, and then restart.
5621
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5622
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5623
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5624
_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'
5626
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5432
5633
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5562
5765
# Determine the default libpath from the value encoded in an empty executable.
5563
5766
_LT_AC_SYS_LIBPATH_AIX
5564
5767
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5565
_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"
5768
_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"
5567
5770
if test "$host_cpu" = ia64; then
5568
5771
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5569
5772
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5570
_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"
5773
_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"
5572
5775
# Determine the default libpath from the value encoded in an empty executable.
5573
5776
_LT_AC_SYS_LIBPATH_AIX
5576
5779
# -berok will link without error, but may produce a broken library.
5577
5780
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5578
5781
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5579
# -bexpall does not export symbols beginning with underscore (_)
5580
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5581
5782
# Exported symbols can be pulled into shared objects from archives
5582
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5783
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5583
5784
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5584
5785
# This is similar to how AIX traditionally builds its shared libraries.
5585
_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'
5786
_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'
5723
5924
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5928
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5929
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5931
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5933
if test "$with_gnu_ld" = no; then
5934
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5935
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5937
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5938
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5940
# hardcode_minus_L: Not really in the search PATH,
5941
# but as the default location of the library.
5942
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5727
5947
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5728
5948
case $host_cpu in
5730
5950
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5953
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5733
5956
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5737
5960
case $host_cpu in
5739
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5962
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5965
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5742
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5968
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5746
5972
if test "$with_gnu_ld" = no; then
5973
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5974
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5747
5976
case $host_cpu in
5749
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5750
5978
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5751
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5752
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5753
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5756
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5757
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5758
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5760
# hardcode_minus_L: Not really in the search PATH,
5761
# but as the default location of the library.
5762
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5979
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5980
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5765
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5766
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5767
5983
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5768
5984
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5962
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5963
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5964
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5965
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5966
hardcode_runpath_var=yes
5967
runpath_var=LD_RUN_PATH
5970
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5971
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5972
if test "$GCC" = yes; then
5973
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5975
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5977
runpath_var='LD_RUN_PATH'
5978
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5982
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5983
# $CC -shared without GNU ld will not create a library from C++
5984
# object files and a static libstdc++, better avoid it by now
5985
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5986
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5987
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5988
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5989
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5990
runpath_var='LD_RUN_PATH'
6169
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6170
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6171
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6172
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6173
runpath_var='LD_RUN_PATH'
6175
if test "$GCC" = yes; then
6176
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6177
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6179
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6180
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6184
sysv5* | sco3.2v5* | sco5v6*)
6185
# Note: We can NOT use -z defs as we might desire, because we do not
6186
# link with -lc, and that would cause any symbols used from libc to
6187
# always be unresolved, which means just about no library would
6188
# ever link correctly. If we're not using GNU ld we use -z text
6189
# though, which does catch some bad symbols but isn't as heavy-handed
6191
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6192
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6193
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6194
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6195
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6196
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6197
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6198
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6199
runpath_var='LD_RUN_PATH'
6201
if test "$GCC" = yes; then
6202
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6203
_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'
6205
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6206
_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'