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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Aug 31 09:59:05 2014 +0200

scripts/xeno-config: repeat local build CFLAGS/LDFLAGS in application flags

---

 configure    |    3 +++
 configure.ac |    5 +++++
 2 files changed, 8 insertions(+)

diff --git a/configure b/configure
index 4aadf77..e1c1871 100755
--- a/configure
+++ b/configure
@@ -13979,6 +13979,9 @@ 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"
 
+XENO_USER_APP_CFLAGS="$CFLAGS $XENO_USER_APP_CFLAGS"
+XENO_USER_APP_LDFLAGS="$LDFLAGS  $XENO_USER_APP_LDFLAGS"
+
 if test x$debug_mode = xpartial; then
    XENO_USER_CFLAGS="-g -O2 $XENO_USER_CFLAGS"
 elif test x$debug_mode = xfull; then
diff --git a/configure.ac b/configure.ac
index e9aaf89..023d270 100644
--- a/configure.ac
+++ b/configure.ac
@@ -626,6 +626,11 @@ 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"
 
+dnl Add any flags forced on the command line, but only
+dnl for building apps.
+XENO_USER_APP_CFLAGS="$CFLAGS $XENO_USER_APP_CFLAGS"
+XENO_USER_APP_LDFLAGS="$LDFLAGS  $XENO_USER_APP_LDFLAGS"
+
 if test x$debug_mode = xpartial; then
    XENO_USER_CFLAGS="-g -O2 $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