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

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

build: 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 |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index 542392d..f3e37d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -609,19 +609,19 @@ 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 \
--Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long 
-Wno-unused-parameter -Werror"
-XENO_USER_LDADD=
+dnl Exported CFLAGS and LDFLAGS, shared with internal flags
+XENO_USER_APP_CFLAGS="-D_GNU_SOURCE -D_REENTRANT"
+XENO_USER_APP_LDFLAGS=
 
 if test x$use_registry = xy; then
    XENO_FUSE_CFLAGS=$fuse_cflags
-   XENO_USER_LDADD="$XENO_USER_LDADD $fuse_ldflags"
+   XENO_USER_APP_LDFLAGS="$XENO_USER_APP_LDFLAGS $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
+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_APP_LDFLAGS"
 
 if test x$debug_mode = xpartial; then
    XENO_USER_CFLAGS="-g -O2 -D__XENO_DEBUG__ $XENO_USER_CFLAGS"


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

Reply via email to