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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sat Jun 16 01:19:39 2012 +0200

build: only enable frame pointers on x86_32

---

 configure    |   13 +++++++++----
 configure.in |   13 +++++++++----
 2 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/configure b/configure
index f1dfba5..945acba 100755
--- a/configure
+++ b/configure
@@ -13424,13 +13424,9 @@ fi
 
 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -D__XENO__ -D__IN_XENO__ 
-Wstrict-prototypes"
 
-XENO_LIB_CFLAGS="$XENO_USER_CFLAGS"
-XENO_LIB_LDFLAGS="$XENO_USER_LDFLAGS"
-
 case $XENO_TARGET_ARCH in
  x86)
        XENO_USER_CFLAGS="$XENO_USER_CFLAGS -fstrict-aliasing $gcc_w_noalias"
-       XENO_LIB_CFLAGS="$XENO_LIB_CFLAGS -fno-omit-frame-pointer 
-fstrict-aliasing $gcc_w_noalias"
        ;;
  powerpc)
        ;;
@@ -13441,6 +13437,15 @@ case $XENO_TARGET_ARCH in
        ;;
 esac
 
+XENO_LIB_CFLAGS="$XENO_USER_CFLAGS"
+XENO_LIB_LDFLAGS="$XENO_USER_LDFLAGS"
+
+case "$build_for" in
+ i*86*-*)
+       XENO_LIB_CFLAGS="$XENO_LIB_CFLAGS -fno-omit-frame-pointer"
+       ;;
+esac
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports @file" 
>&5
 $as_echo_n "checking whether ld supports @file... " >&6; }
 if test "${ac_cv_ld_file_option+set}" = set; then :
diff --git a/configure.in b/configure.in
index 3036f44..7bd0b1a 100644
--- a/configure.in
+++ b/configure.in
@@ -464,13 +464,9 @@ fi
 
 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -D__XENO__ -D__IN_XENO__ 
-Wstrict-prototypes"
 
-XENO_LIB_CFLAGS="$XENO_USER_CFLAGS"
-XENO_LIB_LDFLAGS="$XENO_USER_LDFLAGS"
-
 case $XENO_TARGET_ARCH in
  x86)
        XENO_USER_CFLAGS="$XENO_USER_CFLAGS -fstrict-aliasing $gcc_w_noalias"
-       XENO_LIB_CFLAGS="$XENO_LIB_CFLAGS -fno-omit-frame-pointer 
-fstrict-aliasing $gcc_w_noalias"
        ;;
  powerpc)
        ;;
@@ -481,6 +477,15 @@ case $XENO_TARGET_ARCH in
        ;;
 esac
 
+XENO_LIB_CFLAGS="$XENO_USER_CFLAGS"
+XENO_LIB_LDFLAGS="$XENO_USER_LDFLAGS"
+
+case "$build_for" in
+ i*86*-*)
+       XENO_LIB_CFLAGS="$XENO_LIB_CFLAGS -fno-omit-frame-pointer"
+       ;;
+esac
+
 AC_MSG_CHECKING([whether ld supports @file])
 AC_CACHE_VAL(ac_cv_ld_file_option,
   AC_LANG_SAVE


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

Reply via email to