On 2015年05月05日 23:43, Burton, Ross wrote:

On 23 April 2015 at 04:18, <[email protected]
<mailto:[email protected]>> 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
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to