]> code.ossystems Code Review - openembedded-core.git/commitdiff
zip: pay some attention to our CFLAGS
authorJoe Slater <jslater@windriver.com>
Thu, 15 Nov 2012 18:21:25 +0000 (10:21 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Nov 2012 15:12:07 +0000 (15:12 +0000)
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

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-extended/zip/zip_3.0.bb

index 12380715dc5ec3c0e6864b1bd1fffca2973722fb..1e961101bce1db29e86e989f20182767754bf2fc 100644 (file)
@@ -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}'"