diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-01-10 11:15:20 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-22 23:42:53 +0000 |
commit | a40532a5277e1c0392032ff2d4992046477fadf0 (patch) | |
tree | 52bb6f1ac11695c75047e723cd11b99de26db6ac /meta/recipes-core/fts | |
parent | 300defd71205bf350a6e956451e0cc87c4e92902 (diff) | |
download | openembedded-core-a40532a5277e1c0392032ff2d4992046477fadf0.tar.gz openembedded-core-a40532a5277e1c0392032ff2d4992046477fadf0.tar.bz2 openembedded-core-a40532a5277e1c0392032ff2d4992046477fadf0.zip |
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 <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-core/fts')
-rw-r--r-- | meta/recipes-core/fts/fts.bb | 8 |
1 files changed, 7 insertions, 1 deletions
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() { |