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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Fri Feb  3 15:41:52 2012 +0100

Only export required CFLAGS via xeno-config

The decisions about -Werror, -pipe etc. should be left to the
application.

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

---

 configure.ac |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/configure.ac b/configure.ac
index 542392d..b3de6db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -609,20 +609,20 @@ if test "$ac_cv_atomic_builtins" != "yes"; then
    AC_MSG_ERROR([compiler does not support atomic builtins])
 fi
 
-dnl Common CFLAGS and LDFLAGS
-XENO_USER_CFLAGS="-D_GNU_SOURCE -D_REENTRANT -pipe -fstrict-aliasing \
+dnl Exported CFLAGS and LDFLAGS, shared with internal flags
+XENO_USER_APP_CFLAGS="-D_GNU_SOURCE -D_REENTRANT"
+XENO_USER_APP_LDFLAGS=
+
+dnl Internal CFLAGS and LDFLAGS, may be enhanced per-arch below
+XENO_USER_CFLAGS="$XENO_USER_APP_CFLAGS -pipe -fstrict-aliasing \
 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long 
-Wno-unused-parameter -Werror"
-XENO_USER_LDADD=
+XENO_USER_LDADD="$XENO_USER_APP_LDFLAGS"
 
 if test x$use_registry = xy; then
    XENO_FUSE_CFLAGS=$fuse_cflags
    XENO_USER_LDADD="$XENO_USER_LDADD $fuse_ldflags"
 fi
 
-dnl Exported CFLAGS and LDFLAGS, may be enhanced per-arch below
-XENO_USER_APP_CFLAGS=$XENO_USER_CFLAGS
-XENO_USER_APP_LDFLAGS=$XENO_USER_LDADD
-
 if test x$debug_mode = xpartial; then
    XENO_USER_CFLAGS="-g -O2 -D__XENO_DEBUG__ $XENO_USER_CFLAGS"
 elif test x$debug_mode = xfull; then


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

Reply via email to