1729
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1730
version_type=freebsd-elf
1733
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1734
soname_spec='${libname}${release}${shared_ext}$major'
1735
shlibpath_var=LD_LIBRARY_PATH
1736
hardcode_into_libs=yes
1737
if test "$with_gnu_ld" = yes; then
1738
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1739
shlibpath_overrides_runpath=no
1741
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1742
shlibpath_overrides_runpath=yes
1745
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1749
sys_lib_dlsearch_path_spec='/usr/lib'
1704
1753
version_type=linux
1705
1754
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2370
2431
# Let the user override the test.
2371
2432
lt_cv_path_NM="$NM"
2373
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2374
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2376
test -z "$ac_dir" && ac_dir=.
2377
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2378
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2379
# Check to see if the nm accepts a BSD-compat flag.
2380
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2381
# nm: unknown option "B" ignored
2382
# Tru64's nm complains that /dev/null is an invalid object file
2383
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2384
*/dev/null* | *'Invalid file or object type'*)
2385
lt_cv_path_NM="$tmp_nm -B"
2389
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2391
lt_cv_path_NM="$tmp_nm -p"
2434
lt_nm_to_check="${ac_tool_prefix}nm"
2435
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2436
lt_nm_to_check="$lt_nm_to_check nm"
2438
for lt_tmp_nm in $lt_nm_to_check; do
2439
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2440
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2442
test -z "$ac_dir" && ac_dir=.
2443
tmp_nm="$ac_dir/$lt_tmp_nm"
2444
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2445
# Check to see if the nm accepts a BSD-compat flag.
2446
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2447
# nm: unknown option "B" ignored
2448
# Tru64's nm complains that /dev/null is an invalid object file
2449
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2450
*/dev/null* | *'Invalid file or object type'*)
2451
lt_cv_path_NM="$tmp_nm -B"
2395
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2396
continue # so that we can try to find one that supports BSD flags
2455
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2457
lt_cv_path_NM="$tmp_nm -p"
2461
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2462
continue # so that we can try to find one that supports BSD flags
2403
2471
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2405
2473
NM="$lt_cv_path_NM"
2591
2659
_LT_COMPILER_BOILERPLATE
2592
2660
_LT_LINKER_BOILERPLATE
2595
# Check for any special shared library compilation flags.
2597
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2598
if test "$GCC" = no; then
2601
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2605
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2606
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2607
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2609
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2610
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2616
# Check to make sure the static flag actually works.
2618
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2619
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2620
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2622
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2625
2662
## CAVEAT EMPTOR:
2626
2663
## There is no encapsulation within the following macros, do not change
2627
2664
## the running order or otherwise move them around unless you know exactly
2909
2949
_LT_AC_SYS_LIBPATH_AIX
2910
2950
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2912
_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"
2952
_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"
2914
2954
if test "$host_cpu" = ia64; then
2915
2955
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2916
2956
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2917
_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"
2957
_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"
2919
2959
# Determine the default libpath from the value encoded in an empty executable.
2920
2960
_LT_AC_SYS_LIBPATH_AIX
2923
2963
# -berok will link without error, but may produce a broken library.
2924
2964
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2925
2965
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2926
# -bexpall does not export symbols beginning with underscore (_)
2927
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2928
2966
# Exported symbols can be pulled into shared objects from archives
2929
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2967
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2930
2968
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2931
2969
# This is similar to how AIX traditionally builds its shared libraries.
2932
_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'
2970
_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'
2976
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2977
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2978
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2979
# support --undefined. This deserves some investigation. FIXME
2980
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2982
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2937
2987
case $cc_basename in
3099
3148
hpux10*|hpux11*)
3100
3149
if test $with_gnu_ld = no; then
3150
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3151
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3101
3153
case $host_cpu in
3103
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3104
3155
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3105
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3108
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3111
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3112
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3113
3158
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3117
3162
case $host_cpu in
3119
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3120
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3123
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3124
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3125
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3126
# but as the default
3127
# location of the library.
3164
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3165
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3130
3168
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3225
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3226
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3227
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3228
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3229
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3230
# Instead, shared libraries are loaded at an image base (0x10000000 by
3231
# default) and relocated if they conflict, which is a slow very memory
3232
# consuming and fragmenting process. To avoid this, we pick a random,
3233
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3234
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3235
_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'
3236
_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'
3180
3238
irix5* | irix6*)
3181
3239
case $cc_basename in
3567
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3568
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3612
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3613
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3614
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3615
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3616
runpath_var='LD_RUN_PATH'
3618
case $cc_basename in
3620
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3621
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3624
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3625
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3629
sysv5* | sco3.2v5* | sco5v6*)
3630
# Note: We can NOT use -z defs as we might desire, because we do not
3631
# link with -lc, and that would cause any symbols used from libc to
3632
# always be unresolved, which means just about no library would
3633
# ever link correctly. If we're not using GNU ld we use -z text
3634
# though, which does catch some bad symbols but isn't as heavy-handed
3636
# For security reasons, it is highly recommended that you always
3637
# use absolute paths for naming shared libraries, and exclude the
3638
# DT_RUNPATH tag from executables and libraries. But doing so
3639
# requires that you compile everything twice, which is a pain.
3640
# So that behaviour is only enabled if SCOABSPATH is set to a
3641
# non-empty value in the environment. Most likely only useful for
3642
# creating official distributions of packages.
3643
# This is a hack until libtool officially supports absolute path
3644
# names for shared libraries.
3645
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3646
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3647
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3648
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3649
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3650
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3651
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3652
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3653
runpath_var='LD_RUN_PATH'
3655
case $cc_basename in
3657
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3658
_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'
3661
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3662
_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'
3571
3667
case $cc_basename in
4799
freebsd* | kfreebsd*-gnu | dragonfly*)
4912
freebsd* | dragonfly*)
4800
4913
# FreeBSD uses GNU C++
4802
4915
hpux9* | hpux10* | hpux11*)
4803
4916
case $cc_basename in
4805
4918
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4806
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4919
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4807
4920
if test "$host_cpu" != ia64; then
4808
4921
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4812
4925
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4813
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4926
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4814
4927
case $host_cpu in
4815
4928
hppa*64*|ia64*)
4816
4929
# +Z the default
5190
5311
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5316
# Check to make sure the static flag actually works.
5318
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5319
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5320
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5321
$lt_tmp_static_flag,
5323
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5355
5490
_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'
5357
5492
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5358
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5493
_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'
5359
5494
# If the export-symbols file already is a .def file (1st line
5360
5495
# is EXPORTS), use it as is; otherwise, prepend...
5361
5496
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5364
5499
echo EXPORTS > $output_objdir/$soname.def;
5365
5500
cat $export_symbols >> $output_objdir/$soname.def;
5367
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5502
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5369
5504
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5509
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5510
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5511
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5512
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5513
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5514
# Instead, shared libraries are loaded at an image base (0x10000000 by
5515
# default) and relocated if they conflict, which is a slow very memory
5516
# consuming and fragmenting process. To avoid this, we pick a random,
5517
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5518
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5519
_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'
5520
_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'
5523
linux* | k*bsd*-gnu)
5374
5524
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5376
5526
case $cc_basename,$host_cpu in
5586
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5587
case `$LD -v 2>&1` in
5588
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5589
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5592
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5593
*** reliably create shared libraries on SCO systems. Therefore, libtool
5594
*** is disabling shared libraries support. We urge you to upgrade GNU
5595
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5596
*** your PATH or compiler configuration so that the native linker is
5597
*** used, and then restart.
5602
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5603
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5604
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5605
_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'
5607
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5437
5614
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5567
5746
# Determine the default libpath from the value encoded in an empty executable.
5568
5747
_LT_AC_SYS_LIBPATH_AIX
5569
5748
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5570
_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"
5749
_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"
5572
5751
if test "$host_cpu" = ia64; then
5573
5752
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5574
5753
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5575
_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"
5754
_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"
5577
5756
# Determine the default libpath from the value encoded in an empty executable.
5578
5757
_LT_AC_SYS_LIBPATH_AIX
5581
5760
# -berok will link without error, but may produce a broken library.
5582
5761
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5583
5762
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5584
# -bexpall does not export symbols beginning with underscore (_)
5585
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5586
5763
# Exported symbols can be pulled into shared objects from archives
5587
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5764
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5588
5765
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5589
5766
# This is similar to how AIX traditionally builds its shared libraries.
5590
_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'
5767
_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'
5728
5905
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5909
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5910
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5912
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5914
if test "$with_gnu_ld" = no; then
5915
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5916
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5918
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5919
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5921
# hardcode_minus_L: Not really in the search PATH,
5922
# but as the default location of the library.
5923
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5732
5928
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5733
5929
case $host_cpu in
5735
5931
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5934
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5738
5937
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5742
5941
case $host_cpu in
5744
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5943
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5946
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5747
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5949
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5751
5953
if test "$with_gnu_ld" = no; then
5954
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5955
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5752
5957
case $host_cpu in
5754
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5755
5959
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5756
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5757
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5758
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5761
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5762
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5763
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5765
# hardcode_minus_L: Not really in the search PATH,
5766
# but as the default location of the library.
5767
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5960
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5961
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5770
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5771
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5772
5964
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5773
5965
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5967
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5968
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5969
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5970
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5971
hardcode_runpath_var=yes
5972
runpath_var=LD_RUN_PATH
5975
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5976
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5977
if test "$GCC" = yes; then
5978
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5980
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5982
runpath_var='LD_RUN_PATH'
5983
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5987
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5988
# $CC -shared without GNU ld will not create a library from C++
5989
# object files and a static libstdc++, better avoid it by now
5990
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5991
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5992
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5993
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5994
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5995
runpath_var='LD_RUN_PATH'
6150
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6151
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6152
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6153
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6154
runpath_var='LD_RUN_PATH'
6156
if test "$GCC" = yes; then
6157
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6158
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6160
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6161
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6165
sysv5* | sco3.2v5* | sco5v6*)
6166
# Note: We can NOT use -z defs as we might desire, because we do not
6167
# link with -lc, and that would cause any symbols used from libc to
6168
# always be unresolved, which means just about no library would
6169
# ever link correctly. If we're not using GNU ld we use -z text
6170
# though, which does catch some bad symbols but isn't as heavy-handed
6172
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6173
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6174
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6175
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6176
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6177
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6178
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6179
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6180
runpath_var='LD_RUN_PATH'
6182
if test "$GCC" = yes; then
6183
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6184
_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'
6186
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6187
_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'