From: "André Draszik" <git@andred.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH v2 2/2] meta-networking: override SECURITY_CFLAGS for c-ares
Date: Mon, 18 Jul 2016 10:46:43 +0100 [thread overview]
Message-ID: <1468835203.4658.12.camel@andred.net> (raw)
In-Reply-To: <CAJ86T=XnuktZ1DB6_Cco+0NnjFOAaa6F4+=dCW8+Pw1t_Yo4nA@mail.gmail.com>
On Mo, 2016-07-18 at 01:37 -0700, Andre McCurdy wrote:
> On Mon, Jul 18, 2016 at 1:16 AM, Khem Raj <raj.khem@gmail.com> wrote:
> >
> > On Mon, Jul 18, 2016 at 1:03 AM <git@andred.net> wrote:
> >
> > >
> > > From: André Draszik <adraszik@tycoint.com>
> > >
> > > c-ares doesn't build if the distro has enabled usage of the
> > > security_flags.inc file as it is picky about what is placed
> > > into CPPFLAGS and CFLAGS. It complains and errors out if any
> > > preprocessor options appear in CFLAGS.
>
> Curl (on which c-ares's configure files seem to be based) used to have
> the same problem but was fixed upstream by:
>
>
> https://github.com/curl/curl/commit/5d3cbde72ece7d83c280492957a26e26ab4e5c
> ca
I must say I agree with c-ares' error here, and this really highlights a bug
in how OE handles the security flags. By convention, preprocessor flags
belong into CPPFLAGS, not CFLAGS.
The real solution hence should be to have OE place -D flags (including
${lcl_maybe_fortify} into CPPFLAGS, not CFLAGS in the first place.
But that'd be a change I am not in a position to test, as it would touch
everything. E.g. there might be build-environments that (silently) ignore
user-supplied CPPFLAGS completely (cmake being one of those [1]).
a.
[1]
https://gitlab.kitware.com/cmake/cmake/issues/12928
https://cmake.org/Bug/view.php?id=12928
next prev parent reply other threads:[~2016-07-18 9:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-18 8:02 [meta-networking][PATCH v2 1/2] c-ares: use our compilation flags git
2016-07-18 8:02 ` [meta-networking][PATCH v2 2/2] meta-networking: override SECURITY_CFLAGS for c-ares git
2016-07-18 8:16 ` Khem Raj
2016-07-18 8:37 ` Andre McCurdy
2016-07-18 9:46 ` André Draszik [this message]
2016-07-18 9:52 ` Khem Raj
2016-07-21 14:56 ` André Draszik
2016-07-18 9:37 ` André Draszik
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=1468835203.4658.12.camel@andred.net \
--to=git@andred.net \
--cc=openembedded-devel@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox