All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] zip: pay some attention to our CFLAGS
@ 2012-11-15 18:21 Joe Slater
  0 siblings, 0 replies; only message in thread
From: Joe Slater @ 2012-11-15 18:21 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/recipes-extended/zip/zip_3.0.bb |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

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}'"
-- 
1.7.3.4




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-15 18:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-15 18:21 [PATCH] zip: pay some attention to our CFLAGS Joe Slater

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.