From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [PATCH] Only export required CFLAGS via xeno-config
Date: Fri, 03 Feb 2012 16:22:34 +0100 [thread overview]
Message-ID: <4F2BFBBA.7030805@domain.hid> (raw)
In-Reply-To: <4F2BF442.9080308@domain.hid>
On 02/03/2012 03:50 PM, Jan Kiszka wrote:
> -Werror-implicit-function-declaration is not compatible with C++, and
> also decisions about -Wall and -pipe should be left to the application.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@domain.hid>
> ---
> configure.in | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/configure.in b/configure.in
> index b2563ee..2185925 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -448,13 +448,13 @@ else
> fi
> AC_MSG_RESULT([done])
>
> -dnl Common CFLAGS and LDFLAGS
> -XENO_USER_CFLAGS="-D_GNU_SOURCE -D_REENTRANT -Wall -Werror-implicit-function-declaration -pipe"
> -XENO_USER_LDFLAGS=
> +dnl Exported CFLAGS and LDFLAGS, shared with internal flags
> +XENO_USER_APP_CFLAGS="-D_GNU_SOURCE -D_REENTRANT"
> +XENO_USER_APP_LDFLAGS=
>
> -dnl Exported CFLAGS and LDFLAGS, may be enhanced per-arch below
> -XENO_USER_APP_CFLAGS=$XENO_USER_CFLAGS
> -XENO_USER_APP_LDFLAGS=$XENO_USER_LDFLAGS
> +dnl Internal CFLAGS and LDFLAGS, may be enhanced per-arch below
> +XENO_USER_CFLAGS="$XENO_USER_CFLAGS -Wall -Werror-implicit-function-declaration -pipe"
> +XENO_USER_LDFLAGS="$XENO_USER_APP_LDFLAGS"
We do not build C++ code, so I see no problem with using flags
incompatible with C++, and customize the flags according to our
preferences. Now, the flags returned by xeno-config are another issue,
if this is what you want to change, please do not change the flags used
to compile xenomai globally.
--
Gilles.
next prev parent reply other threads:[~2012-02-03 15:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-03 14:50 [Xenomai-core] [PATCH] Only export required CFLAGS via xeno-config Jan Kiszka
2012-02-03 15:22 ` Gilles Chanteperdrix [this message]
2012-02-03 15:25 ` Gilles Chanteperdrix
2012-02-07 16:18 ` Gilles Chanteperdrix
2012-02-07 16:20 ` Jan Kiszka
2012-02-08 18:23 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F2BFBBA.7030805@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.