Module: xenomai-3
Branch: next
Commit: 1efce9c3a67153944060d3ce7b0b8d1d5f12720f
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=1efce9c3a67153944060d3ce7b0b8d1d5f12720f

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Mar 27 09:27:31 2015 +0100

scripts/xeno-config: do not wrap POSIX symbols with --cobalt

Use --cobalt to link against libcobalt with no symbol wrapping,
referring to overriden POSIX routines by using __RT() or __COBALT()
qualifiers explicitly.

Use --posix to link against libcobalt with symbol wrapping.

---

 scripts/xeno-config-cobalt.in |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/scripts/xeno-config-cobalt.in b/scripts/xeno-config-cobalt.in
index d72a25e..cf1d9dd 100644
--- a/scripts/xeno-config-cobalt.in
+++ b/scripts/xeno-config-cobalt.in
@@ -52,7 +52,7 @@ Options :
         --ccld
         --arch
         --prefix
-        --[skin=]posix/cobalt|vxworks|psos|alchemy|rtdm|smokey
+        --[skin=]posix|vxworks|psos|alchemy|rtdm|smokey|cobalt
         --auto-init|no-auto-init
         --cflags
         --kcflags
@@ -204,9 +204,13 @@ while test $# -gt 0; do
            copperplate=
            for skin in $skin_list; do
                case "$skin" in
-                   posix|cobalt|rtdm)
+                   posix|rtdm)
                        ldflags="`dump_wrappers cobalt.wrappers` $ldflags"
                        ;;
+                   cobalt)
+                       # do NOT wrap POSIX symbols in application code
+                       # with --cobalt. On the contrary, --posix does.
+                       ;;
                    vxworks|psos|alchemy|smokey)
                        copperplate="$WRAP_MAIN -lcopperplate"
                        ldflags="$ldflags -l$skin"


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

Reply via email to