summaryrefslogtreecommitdiff
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-28 21:00:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-28 21:33:52 +0100
commit5839702da70cec32f01e58280629f6bcf74d0034 (patch)
tree86afae11e4e948eb414e77168a0bec32b8ef48f3 /meta/conf/bitbake.conf
parent8ecfa53a3f2e604dd1a0b91c9dd39a488861ab51 (diff)
downloadopenembedded-core-5839702da70cec32f01e58280629f6bcf74d0034.tar.gz
openembedded-core-5839702da70cec32f01e58280629f6bcf74d0034.tar.bz2
openembedded-core-5839702da70cec32f01e58280629f6bcf74d0034.zip
bitbake.conf: Fix reversed linker hash style logic
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>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 618a57b602..f18e35b7eb 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -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}"