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

Rongqing Li rongqing.li at windriver.com
Wed May 6 00:56:59 UTC 2015



On 2015年05月05日 23:43, Burton, Ross wrote:
>
> On 23 April 2015 at 04:18, <rongqing.li at windriver.com
> <mailto:rongqing.li at windriver.com>> wrote:
>
>     +export FORITY="${@base_conditional( "DEBUG_BUILD", "1", "",
>     "-D_FORTIFY_SOURCE=2", d )}"
>     +EXTRA_OEMAKE = 'AM_CFLAGS="-D_FILE_OFFSET_BITS=64 ${FORITY}"'
>
>
> "FORTIFY" not "FORITY", and why does that need to be exported?
>

typos, but it still fix the building failure.


> I'm also curious as to why fortify and debug builds are incompatible,
> and if there's a sufficient number of problems should we just disable
> fortify in security_flags.inc when debug builds are enabled?
>

the mmc-utils always uses the _FORTIFY_SOURCE, so we
need to override AM_CFLAGS to remove FORTIFY.


mmc-utils/git$ grep AM_CFLAGS Makefile
AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2
override CFLAGS := $(CHECKFLAGS) $(AM_CFLAGS) $(CFLAGS)
mmc-utils/git$


-Roy

> Ross

-- 
Best Reagrds,
Roy | RongQing Li



More information about the Openembedded-core mailing list