From 5815d684a5f291ea94e1bdb4a4cded24fb742aae Mon Sep 17 00:00:00 2001
From: John Bowler <jbowler@nslu2-linux.org>
Date: Thu, 11 Aug 2005 20:11:58 +0000
Subject: libvorbis: thumb only (no PR change): prevent all optimisation to
 hide an apparent compiler bug (register spilling) when compiling thumb code.

---
 packages/libvorbis/libvorbis_1.0.1.bb | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'packages/libvorbis')

diff --git a/packages/libvorbis/libvorbis_1.0.1.bb b/packages/libvorbis/libvorbis_1.0.1.bb
index 89bae8f858..3a3ab73eeb 100644
--- a/packages/libvorbis/libvorbis_1.0.1.bb
+++ b/packages/libvorbis/libvorbis_1.0.1.bb
@@ -9,6 +9,10 @@ file://m4.patch;patch=1"
 
 inherit autotools  pkgconfig
 
+# vorbisfile.c reveals a problem in the gcc register spilling for the
+# thumb instruction set...
+FULL_OPTIMIZATION_thumb = "-O0"
+
 EXTRA_OECONF = "--with-ogg-libraries=${STAGING_LIBDIR} \
 	        --with-ogg-includes=${STAGING_INCDIR}"
 
-- 
cgit v1.2.3