From a40532a5277e1c0392032ff2d4992046477fadf0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 10 Jan 2016 11:15:20 -0800 Subject: fts: Fix linker hash-style option 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 --- meta/recipes-core/fts/fts.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/fts/fts.bb b/meta/recipes-core/fts/fts.bb index d8b4ed2a93..2539e5dc06 100644 --- a/meta/recipes-core/fts/fts.bb +++ b/meta/recipes-core/fts/fts.bb @@ -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() { -- cgit 1.2.3-korg