Module: xenomai-gch
Branch: for-forge
Commit: 1180817e33319d4c02cc532b816de9dbbc3be426
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=1180817e33319d4c02cc532b816de9dbbc3be426

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sat Jun 16 00:45:08 2012 +0200

cobalt/x86_32: only compile cobalt library with frame pointers

---

 configure.in           |   11 +++++++----
 lib/cobalt/Makefile.am |    2 +-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/configure.in b/configure.in
index 90404d4..803aaef 100644
--- a/configure.in
+++ b/configure.in
@@ -531,10 +531,6 @@ if test x$use_assert = x; then
    XENO_USER_CFLAGS="-DNDEBUG $XENO_USER_CFLAGS"
 fi
 
-case "$XENO_TARGET_ARCH" in
-x86) XENO_USER_CFLAGS="$XENO_USER_CFLAGS -fno-omit-frame-pointer";;
-esac
-
 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -D__XENO__ -D__IN_XENO__ 
-Wstrict-prototypes"
 
 AC_MSG_CHECKING([whether ld supports @file])
@@ -566,6 +562,12 @@ if test x$rtcore_type = xcobalt; then
    AC_SUBST(XENO_POSIX_WRAPPERS)
 fi
 
+XENO_COBALT_CFLAGS="$XENO_USER_CFLAGS"
+
+case "$build_for" in
+ i*86*-*) XENO_COBALT_CFLAGS="$XENO_COBALT_CFLAGS -fno-omit-frame-pointer";;
+esac
+
 AC_MSG_CHECKING(whether to enable dlopening of Xenomai libraries)
 AC_ARG_ENABLE(dlopen-libs,
        AC_HELP_STRING([--enable-dlopen-libs], [Allow dynamic loading of 
Xenomai libraries]),
@@ -637,6 +639,7 @@ AC_SUBST(LATEX_MODE)
 AC_SUBST(XENO_TARGET_ARCH)
 AC_SUBST(XENO_BUILD_STRING)
 AC_SUBST(XENO_HOST_STRING)
+AC_SUBST(XENO_COBALT_CFLAGS)
 AC_SUBST(XENO_LIB_LDFLAGS)
 AC_SUBST(XENO_USER_CFLAGS)
 AC_SUBST(XENO_USER_LDADD)
diff --git a/lib/cobalt/Makefile.am b/lib/cobalt/Makefile.am
index be556e6..a0c3335 100644
--- a/lib/cobalt/Makefile.am
+++ b/lib/cobalt/Makefile.am
@@ -32,7 +32,7 @@ libcobalt_la_SOURCES = \
        wrappers.c
 
 libcobalt_la_CPPFLAGS =                                \
-       @XENO_USER_CFLAGS@ -Wno-missing-prototypes      \
+       @XENO_COBALT_CFLAGS@ -Wno-missing-prototypes    \
        -I$(top_srcdir)                                 \
        -I$(top_srcdir)/include
 


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

Reply via email to