Skip to contentSkip to conversation

bitbake.conf: Fix reversed linker hash style logic

PATCH New Richard Purdie 1 participant 1 message Sep 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

meta/conf/bitbake.conf +1 -1
index 618a57b..f18e35b 100644
@@ -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}"