zlib.inc: Add -fforward-propagate on arm.
authorKhem Raj <raj.khem@gmail.com>
Wed, 2 Jun 2010 20:09:22 +0000 (13:09 -0700)
committerKhem Raj <raj.khem@gmail.com>
Sat, 5 Jun 2010 13:52:41 +0000 (06:52 -0700)
* Needed on -O1 compile. Generally we use -Os where
  this option is already enabled. But we enable is anyway
  so it gets picked at -O1 too which we use with DEBUG builds.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/zlib/zlib.inc

index 0f7bea0..5b00ccf 100644 (file)
@@ -3,7 +3,13 @@ SECTION = "libs"
 PRIORITY = "required"
 HOMEPAGE = "http://www.gzip.org/zlib/"
 LICENSE = "zlib"
-INC_PR ="r6"
+INC_PR ="r7"
+
+# Below option is added to overcome the GCC bug on ARM 
+# see http://gcc.gnu.org/PR42981 for further details.
+# We could potentially take it off when its fixed in gcc 4.5
+
+CFLAGS_append_arm = " -fforward-propagate "
 
 BBCLASSEXTEND = "native sdk"