]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
fts: Fix linker hash-style option
authorKhem Raj <raj.khem@gmail.com>
Sun, 10 Jan 2016 19:15:20 +0000 (11:15 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Jan 2016 23:42:53 +0000 (23:42 +0000)
pass --hash-style explicitly to linker
and ensure that mips does not use gnu hash style
This inoculates fts when compiler does not pass
hash style option e.g. clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-core/fts/fts.bb

index d8b4ed2a935beb0d5397f417a49ffb6f2806e1da..2539e5dc06d7760482d03e7ffec7e9e3dbbe47e7 100644 (file)
@@ -22,9 +22,15 @@ S = "${WORKDIR}/${BPN}"
 
 do_configure[noexec] = "1"
 
+HASHSTYLE_mips = "sysv"
+HASHSTYLE_mipsel = "sysv"
+HASHSTYLE_mips64 = "sysv"
+HASHSTYLE_mips64el = "sysv"
+HASHSTYLE = "gnu"
+
 VER = "0"
 do_compile () {
-    ${CC} -I${S} -fPIC -shared -o libfts.so.${VER} -Wl,-soname,libfts.so.${VER} ${S}/fts.c
+    ${CC} -I${S} -fPIC -shared -Wl,--hash-style=${HASHSTYLE} -o libfts.so.${VER} -Wl,-soname,libfts.so.${VER} ${S}/fts.c
 }
 
 do_install() {