Module: xenomai-forge
Branch: next
Commit: 4e7c13eb9302047d8898f0242fd3a7457b553645
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=4e7c13eb9302047d8898f0242fd3a7457b553645

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Mon Feb  3 13:43:44 2014 +0100

scripts/xeno-config-cobalt: Only add cobalt wrapping to ldflags when required

We do not need to wrap POSIX functions when there is no POSIX/cobalt
skin requested. If it is selected, insert the wrapping switches at the
front of ldflags.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 scripts/xeno-config-cobalt.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/xeno-config-cobalt.in b/scripts/xeno-config-cobalt.in
index b853d94..665efc2 100644
--- a/scripts/xeno-config-cobalt.in
+++ b/scripts/xeno-config-cobalt.in
@@ -154,6 +154,7 @@ while test $# -gt 0; do
            for skin in $skin_list; do
                case "$skin" in
                    posix|cobalt)
+                       ldflags="`dump_wrappers cobalt.wrappers` $ldflags"
                        ;;
                    vxworks|psos|alchemy)
                        copperplate="$WRAP_MAIN -lcopperplate"
@@ -168,7 +169,6 @@ while test $# -gt 0; do
                        ;;
                esac
            done
-           dump_wrappers cobalt.wrappers
            echo "$ldflags $copperplate $XENO_POSIX_LDFLAGS"
            ;;
        --core)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to