Merge bk://oe-devel.bkbits.net/openembedded
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>
Wed, 29 Dec 2004 22:25:53 +0000 (22:25 +0000)
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>
Wed, 29 Dec 2004 22:25:53 +0000 (22:25 +0000)
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

classes/flow-lossage.bbclass

index e69de29..3e841e3 100644 (file)
@@ -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)
+}