aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zlib
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-06-02 13:09:22 -0700
committerKhem Raj <raj.khem@gmail.com>2010-06-05 06:52:41 -0700
commit0df02f7d999090a40eea1858e43557fc4e1ccaf3 (patch)
tree8ae9589c6d95116a1331233bebba6106f4fce0ca /recipes/zlib
parentbe8c14f9c3f31bb56ef442156a04465d2efd2270 (diff)
downloadopenembedded-0df02f7d999090a40eea1858e43557fc4e1ccaf3.tar.gz
zlib.inc: Add -fforward-propagate on arm.
* 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>
Diffstat (limited to 'recipes/zlib')
-rw-r--r--recipes/zlib/zlib.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes/zlib/zlib.inc b/recipes/zlib/zlib.inc
index 0f7bea06d5..5b00ccf6e0 100644
--- a/recipes/zlib/zlib.inc
+++ b/recipes/zlib/zlib.inc
@@ -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"