From: Joe Slater Date: Thu, 15 Nov 2012 18:21:25 +0000 (-0800) Subject: zip: pay some attention to our CFLAGS X-Git-Tag: rev_ivi_2015_02_04~14839 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e69a1e01cba404487dc05208029ba8799c02c13;p=scm%2Fbb%2Ftizen-distro.git zip: pay some attention to our CFLAGS Makefile makes use of CFLAGS_NOOPT. If we set that when calling make we can options like -g. The Makefile will override any optimization to -O3. Upstream-Status: Pending (From OE-Core rev: df2c260f9cda2e291c72f7debe1e6d53846ce058) Signed-off-by: Joe Slater Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/zip/zip_3.0.bb b/meta/recipes-extended/zip/zip_3.0.bb index 1238071..1e96110 100644 --- a/meta/recipes-extended/zip/zip_3.0.bb +++ b/meta/recipes-extended/zip/zip_3.0.bb @@ -1,9 +1,15 @@ require zip.inc -PR="r1" +PR="r2" # zip-2.32 still uses directory name of zip-2.30 S = "${WORKDIR}/zip30" SRC_URI[md5sum] = "7b74551e63f8ee6aab6fbc86676c0d37" SRC_URI[sha256sum] = "f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369" + +# zip.inc sets CFLAGS, but what Makefile actually uses is +# CFLAGS_NOOPT. It will also force -O3 optimization, overriding +# whatever we set. +# +EXTRA_OEMAKE_append = " 'CFLAGS_NOOPT=-I. -DUNIX ${CFLAGS}'"