]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: Fix reversed linker hash style logic
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Sep 2011 20:00:41 +0000 (21:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Sep 2011 20:33:52 +0000 (21:33 +0100)
The logic in the linker hash patch was reversed, only setting the
linker style in the non-gnu cases.

Signed-off-by: Richard Purdie <richard.purdie@linux-foundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index 618a57b602d656b03d5a17cd6bce08cff218ee84..f18e35b7eb9b724e5929e8c6d28b6e4d52453491 100644 (file)
@@ -482,7 +482,7 @@ LINKER_HASH_STYLE_mips = "sysv"
 LINKER_HASH_STYLE_mipsel = "sysv"
 LINKER_HASH_STYLE_mips64 = "sysv"
 LINKER_HASH_STYLE_mips64el = "sysv"
-TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('LINKER_HASH_STYLE', d, True) == 'gnu']}"
+TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE', True) != 'gnu']}"
 
 export LDFLAGS = "${TARGET_LDFLAGS}"
 export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}"