1 --- a/ltmain.sh 2014-07-30 22:21:24.664684143 +0200
2 +++ b/ltmain.sh 2014-07-30 22:23:02.440687625 +0200
4 # was found and let the user know that the "--tag" command
5 # line option must be used.
6 if test -z "$tagname"; then
7 - func_echo "unable to infer tagged configuration"
8 - func_fatal_error "specify a tag with \`--tag'"
9 + func_echo "defaulting to \`CC'"
10 + func_echo "if this is not correct, specify a tag with \`--tag'"
12 # func_verbose "using $tagname tagged configuration"
14 @@ -2963,8 +2963,11 @@
15 # At present, this check doesn't affect windows .dll's that
16 # are installed into $libdir/../bin (currently, that works fine)
17 # but it's something to keep an eye on.
18 - test "$inst_prefix_dir" = "$destdir" && \
19 - func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
21 + # This breaks install into our staging area. -PB
23 + # test "$inst_prefix_dir" = "$destdir" && \
24 + # func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
26 if test -n "$inst_prefix_dir"; then
27 # Stick the inst_prefix_dir data into the link command.
30 -all-static | -static | -static-libtool-libs)
33 + # Make -static behave like -all-static
34 + -all-static | -static)
35 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
36 func_warning "complete static linking is impossible in this configuration"
38 @@ -5185,12 +5189,6 @@
40 prefer_static_libs=yes
43 - if test -z "$pic_flag" && test -n "$link_static_flag"; then
44 - dlopen_self=$dlopen_self_static
46 - prefer_static_libs=built
49 if test -z "$pic_flag" && test -n "$link_static_flag"; then
50 dlopen_self=$dlopen_self_static
56 + # Make -static behave like -all-static
57 + -all-static | -static)
58 if test -n "$link_static_flag"; then
59 # See comment for -static flag below, for more details.
60 func_append compile_command " $link_static_flag"
65 - -static | -static-libtool-libs)
66 + -static-libtool-libs)
67 # The effects of -static are defined in a previous loop.
68 # We used to do the same as -all-static on platforms that
69 # didn't have a PIC flag, but the assumption that the effects
72 if test "$installed" = no; then
73 func_append notinst_deplibs " $lib"
79 @@ -9275,6 +9274,10 @@
80 # Replace all uninstalled libtool libraries with the installed ones
82 for deplib in $dependency_libs; do
83 + # Replacing uninstalled with installed can easily break crosscompilation,
84 + # since the installed path is generally the wrong architecture. -CL
85 + newdependency_libs="$newdependency_libs $deplib"
89 func_basename "$deplib"