diff --git a/lib/fontconfig/ltmain.sh b/lib/fontconfig/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/fontconfig/ltmain.sh +++ b/lib/fontconfig/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libFS/ltmain.sh b/lib/libFS/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libFS/ltmain.sh +++ b/lib/libFS/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libICE/ltmain.sh b/lib/libICE/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libICE/ltmain.sh +++ b/lib/libICE/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libSM/ltmain.sh b/lib/libSM/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libSM/ltmain.sh +++ b/lib/libSM/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libX11/ltmain.sh b/lib/libX11/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libX11/ltmain.sh +++ b/lib/libX11/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXRes/ltmain.sh b/lib/libXRes/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXRes/ltmain.sh +++ b/lib/libXRes/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXScrnSaver/ltmain.sh b/lib/libXScrnSaver/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXScrnSaver/ltmain.sh +++ b/lib/libXScrnSaver/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXTrap/ltmain.sh b/lib/libXTrap/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXTrap/ltmain.sh +++ b/lib/libXTrap/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXau/ltmain.sh b/lib/libXau/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXau/ltmain.sh +++ b/lib/libXau/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXaw/ltmain.sh b/lib/libXaw/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXaw/ltmain.sh +++ b/lib/libXaw/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXcomposite/ltmain.sh b/lib/libXcomposite/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXcomposite/ltmain.sh +++ b/lib/libXcomposite/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXcursor/ltmain.sh b/lib/libXcursor/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXcursor/ltmain.sh +++ b/lib/libXcursor/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXdamage/ltmain.sh b/lib/libXdamage/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXdamage/ltmain.sh +++ b/lib/libXdamage/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXdmcp/ltmain.sh b/lib/libXdmcp/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXdmcp/ltmain.sh +++ b/lib/libXdmcp/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXevie/ltmain.sh b/lib/libXevie/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXevie/ltmain.sh +++ b/lib/libXevie/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXext/ltmain.sh b/lib/libXext/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXext/ltmain.sh +++ b/lib/libXext/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXfixes/ltmain.sh b/lib/libXfixes/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXfixes/ltmain.sh +++ b/lib/libXfixes/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXfont/ltmain.sh b/lib/libXfont/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXfont/ltmain.sh +++ b/lib/libXfont/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXfontcache/ltmain.sh b/lib/libXfontcache/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXfontcache/ltmain.sh +++ b/lib/libXfontcache/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXft/ltmain.sh b/lib/libXft/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXft/ltmain.sh +++ b/lib/libXft/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXi/ltmain.sh b/lib/libXi/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXi/ltmain.sh +++ b/lib/libXi/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXinerama/ltmain.sh b/lib/libXinerama/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXinerama/ltmain.sh +++ b/lib/libXinerama/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXmu/ltmain.sh b/lib/libXmu/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXmu/ltmain.sh +++ b/lib/libXmu/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXp/ltmain.sh b/lib/libXp/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXp/ltmain.sh +++ b/lib/libXp/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXpm/ltmain.sh b/lib/libXpm/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXpm/ltmain.sh +++ b/lib/libXpm/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXprintAppUtil/ltmain.sh b/lib/libXprintAppUtil/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXprintAppUtil/ltmain.sh +++ b/lib/libXprintAppUtil/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXprintUtil/ltmain.sh b/lib/libXprintUtil/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXprintUtil/ltmain.sh +++ b/lib/libXprintUtil/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXrandr/ltmain.sh b/lib/libXrandr/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXrandr/ltmain.sh +++ b/lib/libXrandr/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXrender/ltmain.sh b/lib/libXrender/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXrender/ltmain.sh +++ b/lib/libXrender/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXt/ltmain.sh b/lib/libXt/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXt/ltmain.sh +++ b/lib/libXt/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXtst/ltmain.sh b/lib/libXtst/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXtst/ltmain.sh +++ b/lib/libXtst/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXv/ltmain.sh b/lib/libXv/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXv/ltmain.sh +++ b/lib/libXv/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXvMC/ltmain.sh b/lib/libXvMC/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXvMC/ltmain.sh +++ b/lib/libXvMC/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXxf86dga/ltmain.sh b/lib/libXxf86dga/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXxf86dga/ltmain.sh +++ b/lib/libXxf86dga/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXxf86misc/ltmain.sh b/lib/libXxf86misc/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXxf86misc/ltmain.sh +++ b/lib/libXxf86misc/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libXxf86vm/ltmain.sh b/lib/libXxf86vm/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libXxf86vm/ltmain.sh +++ b/lib/libXxf86vm/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libdmx/ltmain.sh b/lib/libdmx/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libdmx/ltmain.sh +++ b/lib/libdmx/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libdrm/ltmain.sh b/lib/libdrm/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libdrm/ltmain.sh +++ b/lib/libdrm/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libfontenc/ltmain.sh b/lib/libfontenc/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libfontenc/ltmain.sh +++ b/lib/libfontenc/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/liblbxutil/ltmain.sh b/lib/liblbxutil/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/liblbxutil/ltmain.sh +++ b/lib/liblbxutil/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/liboldX/ltmain.sh b/lib/liboldX/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/liboldX/ltmain.sh +++ b/lib/liboldX/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libxkbfile/ltmain.sh b/lib/libxkbfile/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libxkbfile/ltmain.sh +++ b/lib/libxkbfile/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;; diff --git a/lib/libxkbui/ltmain.sh b/lib/libxkbui/ltmain.sh index 25f21fea7..85faf0734 100644 --- a/lib/libxkbui/ltmain.sh +++ b/lib/libxkbui/ltmain.sh @@ -1604,6 +1604,7 @@ EOF compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" + deplibs="$deplibs $arg" continue ;; @@ -2111,6 +2112,7 @@ EOF finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue ;;