aboutsummaryrefslogtreecommitdiffstats
path: root/classes/flow-lossage.bbclass
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2004-12-29 22:25:53 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2004-12-29 22:25:53 +0000
commit2409ba66a0e22d16dfe617bf99ff79b5fe3f5e40 (patch)
tree6886474b78d6477e817c6d4bcb45600e7989e585 /classes/flow-lossage.bbclass
parent995f37cbffd6db1ff493ced79995db8a34696560 (diff)
downloadopenembedded-2409ba66a0e22d16dfe617bf99ff79b5fe3f5e40.tar.gz
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/29 16:25:52-06:00 ti.com!kergoth Change flow-lossage.bbclass to use an anonymous python function rather than :=. This avoids the immediate variable expansion, which had the potential to cause some unintended side effects, like 'CFLAGS' no longer matching 'TARGET_CFLAGS' in certain circumstances. BKrev: 41d32ef1mq97PRKDWN6QJ7BdVFyiFA
Diffstat (limited to 'classes/flow-lossage.bbclass')
-rw-r--r--classes/flow-lossage.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/flow-lossage.bbclass b/classes/flow-lossage.bbclass
index e69de29bb2..3e841e3cae 100644
--- a/classes/flow-lossage.bbclass
+++ b/classes/flow-lossage.bbclass
@@ -0,0 +1,5 @@
+# gcc-3.4 blows up in gtktext with -frename-registers on arm-linux
+python () {
+ cflags = (bb.data.getVar('CFLAGS', d, 1) or '').replace('-frename-registers', '')
+ bb.data.setVar('CFLAGS', cflags, d)
+}