2
2
## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
3
3
## by inline-source v2019-02-19.15
5
# libtool (GNU libtool) 2.4.7
5
# libtool (GNU libtool) 2.5.4
6
6
# Provide generalized library-building support services.
7
7
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9
# Copyright (C) 1996-2019, 2021-2022 Free Software Foundation, Inc.
9
# Copyright (C) 1996-2019, 2021-2024 Free Software Foundation, Inc.
10
10
# This is free software; see the source for copying conditions. There is NO
11
11
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
72
72
# This is free software. There is NO warranty; not even for
73
73
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
75
# Copyright (C) 2004-2019, 2021 Bootstrap Authors
75
# Copyright (C) 2004-2019, 2021, 2023-2024 Bootstrap Authors
77
77
# This file is dual licensed under the terms of the MIT license
78
# <https://opensource.org/license/MIT>, and GPL version 2 or later
79
# <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
78
# <https://opensource.org/licenses/MIT>, and GPL version 2 or later
79
# <https://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
80
80
# these licenses when using or redistributing this software or any of
81
81
# the files within it. See the URLs above, or the file `LICENSE`
82
82
# included in the Bootstrap distribution for the full license texts.
1536
1536
# This is free software. There is NO warranty; not even for
1537
1537
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1539
# Copyright (C) 2010-2019, 2021 Bootstrap Authors
1539
# Copyright (C) 2010-2019, 2021, 2023-2024 Bootstrap Authors
1541
1541
# This file is dual licensed under the terms of the MIT license
1542
# <https://opensource.org/license/MIT>, and GPL version 2 or later
1543
# <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1542
# <https://opensource.org/licenses/MIT>, and GPL version 2 or later
1543
# <https://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1544
1544
# these licenses when using or redistributing this software or any of
1545
1545
# the files within it. See the URLs above, or the file `LICENSE`
1546
1546
# included in the Bootstrap distribution for the full license texts.
2217
2217
# Set a version string.
2218
scriptversion='(GNU libtool) 2.4.7'
2218
scriptversion='(GNU libtool) 2.5.4'
2222
# Echo version message to standard output and exit.
2230
$progname $scriptversion
2231
Copyright (C) $year Free Software Foundation, Inc.
2232
License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl.html>
2233
This is free software: you are free to change and redistribute it.
2234
There is NO WARRANTY, to the extent permitted by law.
2236
Originally written by Gordon Matzigkeit, 1996
2237
(See AUTHORS for complete contributor listing)
2221
2244
# func_echo ARG...
2262
2273
# Short help message in response to '-h'.
2263
2274
usage_message="Options:
2264
--config show all configuration variables
2265
--debug enable verbose shell tracing
2266
-n, --dry-run display commands without modifying any files
2267
--features display basic configuration information and exit
2268
--mode=MODE use operation mode MODE
2269
--no-warnings equivalent to '-Wnone'
2270
--preserve-dup-deps don't remove duplicate dependency libraries
2271
--quiet, --silent don't print informational messages
2272
--tag=TAG use configuration variables from tag TAG
2273
-v, --verbose print more informational messages than default
2274
--version print version information
2275
-W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2276
-h, --help, --help-all print short, long, or detailed help message
2275
--config show all configuration variables
2276
--debug enable verbose shell tracing
2277
-n, --dry-run display commands without modifying any files
2278
--features display basic configuration information
2279
--finish use operation '--mode=finish'
2280
--mode=MODE use operation mode MODE
2281
--no-finish don't update shared library cache
2282
--no-quiet, --no-silent print default informational messages
2283
--no-warnings equivalent to '-Wnone'
2284
--preserve-dup-deps don't remove duplicate dependency libraries
2285
--quiet, --silent don't print informational messages
2286
--reorder-cache=DIRS reorder shared library cache for preferred DIRS
2287
--tag=TAG use configuration variables from tag TAG
2288
-v, --verbose print more informational messages than default
2289
--version print version information
2290
-W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2291
-h, --help, --help-all print short, long, or detailed help message
2279
2294
# Additional text appended to 'usage_message' in response to '--help'.
2306
2321
compiler: $LTCC
2307
2322
compiler flags: $LTCFLAGS
2308
2323
linker: $LD (gnu? $with_gnu_ld)
2309
version: $progname (GNU libtool) 2.4.7
2324
version: $progname $scriptversion
2310
2325
automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2311
2326
autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2313
2328
Report bugs to <bug-libtool@gnu.org>.
2314
GNU libtool home page: <http://www.gnu.org/software/libtool/>.
2315
General help using GNU software: <http://www.gnu.org/gethelp/>."
2329
GNU libtool home page: <https://www.gnu.org/software/libtool/>.
2330
General help using GNU software: <https://www.gnu.org/gethelp/>."
3036
3088
# func_convert_core_path_wine_to_w32 ARG
3037
3089
# Helper function used by path conversion functions when $build is *nix, and
3038
# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
3039
# configured wine environment available, with the winepath program in $build's
3040
# $PATH. Assumes ARG has no leading or trailing path separator characters.
3090
# $host is mingw, windows, cygwin, or some other w32 environment. Relies on a
3091
# correctly configured wine environment available, with the winepath program
3092
# in $build's $PATH. Assumes ARG has no leading or trailing path separator
3042
3095
# ARG is path to be converted from $build format to win32.
3043
3096
# Result is available in $func_convert_core_path_wine_to_w32_result.
3180
3233
# end func_convert_path_front_back_pathsep
3236
# func_convert_delimited_path PATH ORIG_DELIMITER NEW_DELIMITER
3237
# Replaces a delimiter for a given path.
3238
func_convert_delimited_path ()
3240
converted_path=`$ECHO "$1" | $SED "s#$2#$3#g"`
3242
# end func_convert_delimited_path
3183
3245
##################################################
3184
3246
# $build to $host FILE NAME CONVERSION FUNCTIONS #
3185
3247
##################################################
3579
# func_reorder_shared_lib_cache DIRS
3580
# Reorder the shared library cache by unconfiguring previous shared library cache
3581
# and configuring preferred search directories before previous search directories.
3582
# Previous shared library cache: /usr/lib /usr/local/lib
3583
# Preferred search directories: /tmp/testing
3584
# Reordered shared library cache: /tmp/testing /usr/lib /usr/local/lib
3585
func_reorder_shared_lib_cache ()
3591
get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*search directories:\ ##g"`
3592
func_convert_delimited_path "$get_search_directories" ':' '\ '
3593
save_search_directories=$converted_path
3594
func_convert_delimited_path "$1" ':' '\ '
3596
# Ensure directories exist
3597
for dir in $converted_path; do
3598
# Ensure each directory is an absolute path
3601
*) func_error "Directory '$dir' is not an absolute path"
3602
exit $EXIT_FAILURE ;;
3604
# Ensure no trailing slashes
3605
func_stripname '' '/' "$dir"
3606
dir=$func_stripname_result
3607
if test -d "$dir"; then
3608
if test -n "$preferred_search_directories"; then
3609
preferred_search_directories="$preferred_search_directories $dir"
3611
preferred_search_directories=$dir
3614
func_error "Directory '$dir' does not exist"
3619
PATH="$PATH:/sbin" ldconfig -U $save_search_directories
3620
PATH="$PATH:/sbin" ldconfig -m $preferred_search_directories $save_search_directories
3621
get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*search directories:\ ##g"`
3622
func_convert_delimited_path "$get_search_directories" ':' '\ '
3623
reordered_search_directories=$converted_path
3625
$ECHO "Original: $save_search_directories"
3626
$ECHO "Reordered: $reordered_search_directories"
3630
func_error "--reorder-cache is not supported for host_os=$host_os."
3635
# end func_reorder_shared_lib_cache
3517
3638
# func_mode_compile arg...
3518
3639
func_mode_compile ()
4297
4424
for libdir in $libdirs; do
4298
4425
$ECHO " $libdir"
4427
if test "false" = "$opt_finishing"; then
4429
echo "NOTE: finish_cmds were not executed during testing, so you must"
4430
echo "manually run ldconfig to add a given test directory, LIBDIR, to"
4431
echo "the search path for generated executables."
4301
4434
echo "If you ever happen to want to link against installed libraries"
4302
4435
echo "in a given directory, LIBDIR, you must either use libtool, and"
4533
4666
func_append dir "$objdir"
4535
4668
if test -n "$relink_command"; then
4669
# Strip any trailing slash from the destination.
4670
func_stripname '' '/' "$libdir"
4671
destlibdir=$func_stripname_result
4673
func_stripname '' '/' "$destdir"
4674
s_destdir=$func_stripname_result
4536
4676
# Determine the prefix the user has applied to our future dir.
4537
inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4677
inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"`
4539
4679
# Don't allow the user to place us outside of our expected
4540
4680
# location b/c this prevents finding dependent libraries that
6032
6180
/* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
6033
6181
namespace, but it is not one of the ones we know about and
6034
have already dealt with, above (inluding dump-script), then
6182
have already dealt with, above (including dump-script), then
6035
6183
report an error. Otherwise, targets might begin to believe
6036
6184
they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
6037
6185
namespace. The first time any user complains about this, we'll
7328
7479
# Tru64 UNIX uses -model [arg] to determine the layout of C++
7329
7480
# classes, name mangling, and exception handling.
7330
7481
# Darwin uses the -arch flag to determine output architecture.
7331
-model|-arch|-isysroot|--sysroot)
7482
# -q <option> for IBM XL C/C++ compiler.
7483
-model|-arch|-isysroot|--sysroot|-q)
7332
7484
func_append compiler_flags " $arg"
7333
7485
func_append compile_command " $arg"
7334
7486
func_append finalize_command " $arg"
7557
7709
# -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7558
7710
# -specs=* GCC specs files
7559
7711
# -stdlib=* select c++ std lib with clang
7712
# -fdiagnostics-color* simply affects output
7713
# -frecord-gcc-switches used to verify flags were respected
7560
7714
# -fsanitize=* Clang/GCC memory and address sanitizer
7715
# -fno-sanitize* Clang/GCC memory and address sanitizer
7716
# -shared-libsan Link with shared sanitizer runtimes (Clang)
7717
# -static-libsan Link with static sanitizer runtimes (Clang)
7718
# -no-canonical-prefixes Do not expand any symbolic links
7561
7719
# -fuse-ld=* Linker select flags for GCC
7720
# -static-* direct GCC to link specific libraries statically
7721
# -fcilkplus Cilk Plus language extension features for C/C++
7722
# -rtlib=* select c runtime lib with clang
7723
# --unwindlib=* select unwinder library with clang
7724
# -f{file|debug|macro|profile}-prefix-map=* needed for lto linking
7562
7725
# -Wa,* Pass flags directly to the assembler
7726
# -Werror, -Werror=* Report (specified) warnings as errors
7563
7727
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7564
7728
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7565
-O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7566
-specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*)
7729
-O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \
7730
-stdlib=*|-rtlib=*|--unwindlib=*| \
7731
-specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
7732
-ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \
7733
-fdiagnostics-color*|-frecord-gcc-switches| \
7734
-fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*)
7567
7735
func_quote_arg pretty "$arg"
7568
7736
arg=$func_quote_arg_result
7569
7737
func_append compile_command " $arg"
7722
7890
# Now actually substitute the argument into the commands.
7723
7891
if test -n "$arg"; then
7724
func_append compile_command " $arg"
7725
func_append finalize_command " $arg"
7892
if test -n "$rpath_arg"; then
7893
func_append finalize_rpath " ${arg##*,}"
7898
func_append finalize_rpath " ${arg##*,}";;
7902
func_append compile_command " $arg"
7903
func_append finalize_command " $arg"
7727
7907
done # argument parsing loop
8072
8252
if $valid_a_lib; then
8074
$ECHO "*** Warning: Linking the shared library $output against the"
8075
$ECHO "*** static library $deplib is not portable!"
8253
func_warning "Linking the shared library $output against the static library $deplib is not portable!"
8076
8254
deplibs="$deplib $deplibs"
8079
$ECHO "*** Warning: Trying to link with static lib archive $deplib."
8080
echo "*** I have the capability to make that library automatically link in when"
8081
echo "*** you link to this library. But I can only do this if you have a"
8082
echo "*** shared version of the library, which you do not appear to have"
8083
echo "*** because the file extensions .$libext of this argument makes me believe"
8084
echo "*** that it is just a static archive that I should not use here."
8256
func_warning "Trying to link with static lib archive $deplib."
8257
func_warning "I have the capability to make that library automatically link in when"
8258
func_warning "you link to this library. But I can only do this if you have a"
8259
func_warning "shared version of the library, which you do not appear to have"
8260
func_warning "because the file extensions .$libext of this argument makes me believe"
8261
func_warning "that it is just a static archive that I should not use here."
8446
8629
if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8448
8631
if test prog = "$linkmode"; then
8449
$ECHO "*** Warning: Linking the executable $output against the loadable module"
8632
func_warning "Linking the executable $output against the loadable module"
8451
$ECHO "*** Warning: Linking the shared library $output against the loadable module"
8634
func_warning "Linking the shared library $output against the loadable module"
8453
$ECHO "*** $linklib is not portable!"
8636
func_warning "$linklib is not portable!"
8455
8638
if test lib = "$linkmode" &&
8456
8639
test yes = "$hardcode_into_libs"; then
8545
8732
if /usr/bin/file -L $add 2> /dev/null |
8546
8733
$GREP ": [^:]* bundle" >/dev/null; then
8547
8734
if test "X$dlopenmodule" != "X$lib"; then
8548
$ECHO "*** Warning: lib $linklib is a module, not a shared library"
8735
func_warning "lib $linklib is a module, not a shared library"
8549
8736
if test -z "$old_library"; then
8551
echo "*** And there doesn't seem to be a static archive available"
8552
echo "*** The link will probably fail, sorry"
8737
func_warning "And there doesn't seem to be a static archive available"
8738
func_warning "The link will probably fail, sorry"
8554
8740
add=$dir/$old_library
8690
8876
# Just print a warning and add the library to dependency_libs so
8691
8877
# that the program can be linked against the static library.
8693
$ECHO "*** Warning: This system cannot link to static lib archive $lib."
8694
echo "*** I have the capability to make that library automatically link in when"
8695
echo "*** you link to this library. But I can only do this if you have a"
8696
echo "*** shared version of the library, which you do not appear to have."
8878
func_warning "This system cannot link to static lib archive $lib."
8879
func_warning "I have the capability to make that library automatically link in when"
8880
func_warning "you link to this library. But I can only do this if you have a"
8881
func_warning "shared version of the library, which you do not appear to have."
8697
8882
if test yes = "$module"; then
8698
echo "*** But as you try to build a module library, libtool will still create "
8699
echo "*** a static module, that should work as long as the dlopening application"
8700
echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8883
func_warning "But as you try to build a module library, libtool will still create "
8884
func_warning "a static module, that should work as long as the dlopening application"
8885
func_warning "is linked with the -dlopen flag to resolve symbols at runtime."
8701
8886
if test -z "$global_symbol_pipe"; then
8703
echo "*** However, this would only work if libtool was able to extract symbol"
8704
echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
8705
echo "*** not find such a program. So, this module is probably useless."
8706
echo "*** 'nm' from GNU binutils and a full rebuild may help."
8887
func_warning "However, this would only work if libtool was able to extract symbol"
8888
func_warning "lists from a program, using 'nm' or equivalent, but libtool could"
8889
func_warning "not find such a program. So, this module is probably useless."
8890
func_warning "'nm' from GNU binutils and a full rebuild may help."
8708
8892
if test no = "$build_old_libs"; then
8709
8893
build_libtool_libs=module
8863
9051
# Add libraries to $var in reverse order
8864
9052
eval tmp_libs=\"\$$var\"
9054
# FIXME: Pedantically, this is the right thing to do, so
9055
# that some nasty dependency loop isn't accidentally
9056
# broken: new_libs="$deplib $new_libs"
8866
9057
for deplib in $tmp_libs; do
8867
# FIXME: Pedantically, this is the right thing to do, so
8868
# that some nasty dependency loop isn't accidentally
8870
#new_libs="$deplib $new_libs"
8871
# Pragmatically, this seems to cause very few problems in
8874
-L*) new_libs="$deplib $new_libs" ;;
8877
# And here is the reason: when a library appears more
8878
# than once as an explicit dependence of a library, or
8879
# is implicitly linked in more than once by the
8880
# compiler, it is considered special, and multiple
8881
# occurrences thereof are not removed. Compare this
8882
# with having the same library being listed as a
8883
# dependency of multiple other libraries: in this case,
8884
# we know (pedantically, we assume) the library does not
8885
# need to be listed more than once, so we keep only the
8886
# last copy. This is not always right, but it is rare
8887
# enough that we require users that really mean to play
8888
# such unportable linking tricks to link the library
8889
# using -Wl,-lname, so that libtool does not consider it
8890
# for duplicate removal.
8891
case " $specialdeplibs " in
8892
*" $deplib "*) new_libs="$deplib $new_libs" ;;
9058
if $opt_preserve_dup_deps; then
9059
new_libs="$deplib $new_libs"
9061
# Pragmatically, this seems to cause very few problems in
9064
-L*) new_libs="$deplib $new_libs" ;;
8894
case " $new_libs " in
8896
*) new_libs="$deplib $new_libs" ;;
9067
# And here is the reason: when a library appears more
9068
# than once as an explicit dependence of a library, or
9069
# is implicitly linked in more than once by the
9070
# compiler, it is considered special, and multiple
9071
# occurrences thereof are not removed. Compare this
9072
# with having the same library being listed as a
9073
# dependency of multiple other libraries: in this case,
9074
# we know (pedantically, we assume) the library does not
9075
# need to be listed more than once, so we keep only the
9076
# last copy. This is not always right, but it is rare
9077
# enough that we require users that really mean to play
9078
# such unportable linking tricks to link the library
9079
# using -Wl,-lname, so that libtool does not consider it
9080
# for duplicate removal. And if not possible for portability
9081
# reasons, then --preserve-dup-deps should be used.
9082
case " $specialdeplibs " in
9083
*" $deplib "*) new_libs="$deplib $new_libs" ;;
9085
case " $new_libs " in
9087
*) new_libs="$deplib $new_libs" ;;
8904
9096
for deplib in $new_libs; do
9451
9645
# implementing what was already the behavior.
9452
9646
newdeplibs=$deplibs
9455
# This code stresses the "libraries are programs" paradigm to its
9456
# limits. Maybe even breaks it. We compile a program, linking it
9457
# against the deplibs as a proxy for the library. Then we can check
9458
# whether they linked in statically or dynamically with ldd.
9459
$opt_dry_run || $RM conftest.c
9460
cat > conftest.c <<EOF
9461
int main() { return 0; }
9463
$opt_dry_run || $RM conftest
9464
if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9465
ldd_output=`ldd conftest`
9466
for i in $deplibs; do
9469
func_stripname -l '' "$i"
9470
name=$func_stripname_result
9471
if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9472
case " $predeps $postdeps " in
9474
func_append newdeplibs " $i"
9479
if test -n "$i"; then
9480
libname=`eval "\\$ECHO \"$libname_spec\""`
9481
deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
9482
set dummy $deplib_matches; shift
9484
if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9485
func_append newdeplibs " $i"
9489
$ECHO "*** Warning: dynamic linker does not accept needed library $i."
9490
echo "*** I have the capability to make that library automatically link in when"
9491
echo "*** you link to this library. But I can only do this if you have a"
9492
echo "*** shared version of the library, which I believe you do not have"
9493
echo "*** because a test_compile did reveal that the linker did not use it for"
9494
echo "*** its dynamic dependency list that programs get resolved with at runtime."
9499
func_append newdeplibs " $i"
9504
# Error occurred in the first compile. Let's try to salvage
9505
# the situation: Compile a separate program for each library.
9506
for i in $deplibs; do
9509
func_stripname -l '' "$i"
9510
name=$func_stripname_result
9511
$opt_dry_run || $RM conftest
9512
if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9513
ldd_output=`ldd conftest`
9514
if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9515
case " $predeps $postdeps " in
9517
func_append newdeplibs " $i"
9522
if test -n "$i"; then
9523
libname=`eval "\\$ECHO \"$libname_spec\""`
9524
deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
9525
set dummy $deplib_matches; shift
9527
if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9528
func_append newdeplibs " $i"
9532
$ECHO "*** Warning: dynamic linker does not accept needed library $i."
9533
echo "*** I have the capability to make that library automatically link in when"
9534
echo "*** you link to this library. But I can only do this if you have a"
9535
echo "*** shared version of the library, which you do not appear to have"
9536
echo "*** because a test_compile did reveal that the linker did not use this one"
9537
echo "*** as a dynamic dependency that programs can get resolved with at runtime."
9543
$ECHO "*** Warning! Library $i is needed by this library but I was not able to"
9544
echo "*** make it link in! You will probably need to install it or some"
9545
echo "*** library that it depends on before this library will be fully"
9546
echo "*** functional. Installing it before continuing would be even better."
9550
func_append newdeplibs " $i"
9557
9649
set dummy $deplibs_check_method; shift
9558
9650
file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
9617
9709
if test -n "$a_deplib"; then
9618
9710
droppeddeps=yes
9620
$ECHO "*** Warning: linker path does not have real file for library $a_deplib."
9621
echo "*** I have the capability to make that library automatically link in when"
9622
echo "*** you link to this library. But I can only do this if you have a"
9623
echo "*** shared version of the library, which you do not appear to have"
9624
echo "*** because I did check the linker path looking for a file starting"
9711
func_warning "Linker path does not have real file for library $a_deplib."
9712
func_warning "I have the capability to make that library automatically link in when"
9713
func_warning "you link to this library. But I can only do this if you have a"
9714
func_warning "shared version of the library, which you do not appear to have"
9715
func_warning "because I did check the linker path looking for a file starting"
9625
9716
if test -z "$potlib"; then
9626
$ECHO "*** with $libname but no candidates were found. (...for file magic test)"
9717
func_warning "with $libname but no candidates were found. (...for file magic test)"
9628
$ECHO "*** with $libname and none of the candidates passed a file format test"
9629
$ECHO "*** using a file magic. Last file checked: $potlib"
9719
func_warning "with $libname and none of the candidates passed a file format test"
9720
func_warning "using a file magic. Last file checked: $potlib"
9671
9762
if test -n "$a_deplib"; then
9672
9763
droppeddeps=yes
9674
$ECHO "*** Warning: linker path does not have real file for library $a_deplib."
9675
echo "*** I have the capability to make that library automatically link in when"
9676
echo "*** you link to this library. But I can only do this if you have a"
9677
echo "*** shared version of the library, which you do not appear to have"
9678
echo "*** because I did check the linker path looking for a file starting"
9764
func_warning "Linker path does not have real file for library $a_deplib."
9765
func_warning "I have the capability to make that library automatically link in when"
9766
func_warning "you link to this library. But I can only do this if you have a"
9767
func_warning "shared version of the library, which you do not appear to have"
9768
func_warning "because I did check the linker path looking for a file starting"
9679
9769
if test -z "$potlib"; then
9680
$ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
9770
func_warning "with $libname but no candidates were found. (...for regex pattern test)"
9682
$ECHO "*** with $libname and none of the candidates passed a file format test"
9683
$ECHO "*** using a regex pattern. Last file checked: $potlib"
9772
func_warning "with $libname and none of the candidates passed a file format test"
9773
func_warning "using a regex pattern. Last file checked: $potlib"
9730
9820
if test yes = "$droppeddeps"; then
9731
9821
if test yes = "$module"; then
9733
echo "*** Warning: libtool could not satisfy all declared inter-library"
9734
$ECHO "*** dependencies of module $libname. Therefore, libtool will create"
9735
echo "*** a static module, that should work as long as the dlopening"
9736
echo "*** application is linked with the -dlopen flag."
9822
func_warning "libtool could not satisfy all declared inter-library"
9823
func_warning "dependencies of module $libname. Therefore, libtool will create"
9824
func_warning "a static module, that should work as long as the dlopening"
9825
func_warning "application is linked with the -dlopen flag."
9737
9826
if test -z "$global_symbol_pipe"; then
9739
echo "*** However, this would only work if libtool was able to extract symbol"
9740
echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
9741
echo "*** not find such a program. So, this module is probably useless."
9742
echo "*** 'nm' from GNU binutils and a full rebuild may help."
9827
func_warning "However, this would only work if libtool was able to extract symbol"
9828
func_warning "lists from a program, using 'nm' or equivalent, but libtool could"
9829
func_warning "not find such a program. So, this module is probably useless."
9830
func_warning "'nm' from GNU binutils and a full rebuild may help."
9744
9832
if test no = "$build_old_libs"; then
9745
9833
oldlibs=$output_objdir/$libname.$libext
10115
if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
10116
output=$output_objdir/$output_la.lnkscript
10117
func_verbose "creating GNU ld script: $output"
10118
echo 'INPUT (' > $output
10119
for obj in $save_libobjs
10121
func_to_tool_file "$obj"
10122
$ECHO "$func_to_tool_file_result" >> $output
10124
echo ')' >> $output
10125
func_append delfiles " $output"
10126
func_to_tool_file "$output"
10127
output=$func_to_tool_file_result
10128
elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
10203
if test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
10129
10204
output=$output_objdir/$output_la.lnk
10130
10205
func_verbose "creating linker input file list: $output"
10144
10219
func_append delfiles " $output"
10145
10220
func_to_tool_file "$output"
10146
10221
output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
10222
elif test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
10223
output=$output_objdir/$output_la.lnkscript
10224
func_verbose "creating GNU ld script: $output"
10225
echo 'INPUT (' > $output
10226
for obj in $save_libobjs
10228
func_to_tool_file "$obj"
10229
$ECHO "$func_to_tool_file_result" >> $output
10231
echo ')' >> $output
10232
func_append delfiles " $output"
10233
func_to_tool_file "$output"
10234
output=$func_to_tool_file_result
10148
10236
if test -n "$save_libobjs"; then
10149
10237
func_verbose "creating reloadable object files..."
11150
11238
# tests/bindir.at for full details.
11151
11239
tdlname=$dlname
11152
11240
case $host,$output,$installed,$module,$dlname in
11153
*cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
11241
*cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *windows*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
11154
11242
# If a -bindir argument was supplied, place the dll there.
11155
11243
if test -n "$bindir"; then
11156
11244
func_relative_path "$install_libdir" "$bindir"