Description: allow dir/libfoo.so as argument when linking a shared library This already works for programs, and is actually recommended for uninstalled yet libraries instead of the more ambiguous -Ldir -lfoo. Bug-Debian: https://bugs.debian.org/960469 Author: Nicolas Boulenguez --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -5517,6 +5517,13 @@ continue ;; + *.so) + # An explicit path to a shared library. + func_append deplibs " $arg" + func_append old_deplibs " $arg" + continue + ;; + *.la) # A libtool-controlled library. @@ -5871,6 +5878,16 @@ func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; + *.so) + # FIXME: linkmode=prog copies .so arguments without this stanza. Duplicate code? + if test lib = "$linkmode"; then + deplibs="$deplib $deplibs" + test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" + elif test prog != "$linkmode"; then + func_warning "shared library '$deplib' ignored for archive/object" + fi + continue + ;; *.$libext) if test conv = "$pass"; then deplibs="$deplib $deplibs"