Module: xenomai-2.5
Branch: master
Commit: e00bdd72802002e70ed82787a36cf0f45285aada
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=e00bdd72802002e70ed82787a36cf0f45285aada

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Fri Feb 12 08:22:23 2010 +0100

wrap-link: try to work correctly with the --as-needed option

---

 scripts/wrap-link.sh |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/scripts/wrap-link.sh b/scripts/wrap-link.sh
index f4826ac..09944f5 100755
--- a/scripts/wrap-link.sh
+++ b/scripts/wrap-link.sh
@@ -34,7 +34,14 @@ add_linker_flag() {
        stage1_args="$stage1_args -Wl,--wrap $@"
        next_is_wrapped_symbol=false
     else
-       add_2stages "$@"
+       case "$@" in
+       *--as-needed*)
+               stage2_args="$stage2_args $@"
+               ;;
+       *)
+               add_2stages "$@"
+               ;;
+       esac
     fi
 }
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to