From: Khem Raj Date: Sun, 10 Jan 2016 19:15:20 +0000 (-0800) Subject: fts: Fix linker hash-style option X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~27446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a40532a5277e1c0392032ff2d4992046477fadf0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/recipes-core/fts/fts.bb b/meta/recipes-core/fts/fts.bb index d8b4ed2a935..2539e5dc06d 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() {