summaryrefslogtreecommitdiff
path: root/ltmain.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ltmain.sh')
-rw-r--r--ltmain.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/ltmain.sh b/ltmain.sh
index fafd01b2..5f505e27 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -5800,9 +5800,12 @@ func_mode_link ()
arg=$func_stripname_result
;;
- -Wl,--as-needed|-Wl,--no-as-needed)
- deplibs="$deplibs $arg"
- continue
+ -Wl,*--as-needed*)
+ deplibs="$deplibs $wl--as-needed"
+ ;;
+
+ -Wl,*--no-as-needed*)
+ deplibs="$deplibs $wl--no-as-needed"
;;
-Wl,*)