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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Sep 30 15:38:21 2016 +0200

scripts/xeno-config: fix include directory chain in compat mode

== Wrong include chain:
. /install/xenomai/cobalt/pthread.h
.. /install/xenomai/trank/posix/pthread.h
... /usr/include/pthread.h

== Right include chain:
. /install/xenomai/trank/posix/pthread.h
.. /install/xenomai/cobalt/pthread.h
... /usr/include/pthread.h

Fix the order the -I directives are emitted by --cflags --compat
accordingly.

---

 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 802b778..62c1f33 100644
--- a/scripts/xeno-config-cobalt.in
+++ b/scripts/xeno-config-cobalt.in
@@ -213,7 +213,7 @@ if test x$do_cflags = xy; then
     for skin in $skin_list; do
        case "$skin" in
            posix|rtdm)
-               test x$compat = xy && cflags="$cflags 
-I$XENO_INCLUDE_DIR/trank/posix"
+               test x$compat = xy && cflags="-I$XENO_INCLUDE_DIR/trank/posix 
$cflags"
                cflags="$cflags -D__COBALT_WRAP__"
                ;;
            cobalt)


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

Reply via email to