[OE-core] [PATCH][v4] mmc-utils: fix the building failure when DEBUG_BUILD is 1

Burton, Ross ross.burton at intel.com
Wed Jun 24 14:16:30 UTC 2015


On 24 June 2015 at 02:42, Rongqing Li <rongqing.li at windriver.com> wrote:

> #warning _FORTIFY_SOURCE requires compiling with optimization (-O)
> [-Werror=cpp]
> |  #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
>

So security_flags and debug build are mutually exclusive, and no amount of
fixing recipes one by one will fix that.  This is a compiler warning
(presumably the result being that fortify isn't enabled in debug builds)
that the mmc-utils build is treating as an error, so a more reasonable fix
would be to remove -Werror from the build which is a reasonable thing to do
- only the developer of software should use -Werror as it causes untold
amounts of pain on everyone else if something changes (say, gcc adds a new
warning).

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150624/360e0613/attachment-0002.html>


More information about the Openembedded-core mailing list