summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-01-10 11:15:20 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:30 +0000
commit2d028b382c234c23cb54f3eb33e70b3c248d9128 (patch)
tree3278fd7807e1546dc985d0e3e29a0b8888cafc19 /meta/recipes-core
parent8dd1aa8b70c4200d1c9774715fbc7860114dd8a8 (diff)
downloadpoky-2d028b382c234c23cb54f3eb33e70b3c248d9128.tar.gz
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 (From OE-Core rev: a40532a5277e1c0392032ff2d4992046477fadf0) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/fts/fts.bb8
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}"
22 22
23do_configure[noexec] = "1" 23do_configure[noexec] = "1"
24 24
25HASHSTYLE_mips = "sysv"
26HASHSTYLE_mipsel = "sysv"
27HASHSTYLE_mips64 = "sysv"
28HASHSTYLE_mips64el = "sysv"
29HASHSTYLE = "gnu"
30
25VER = "0" 31VER = "0"
26do_compile () { 32do_compile () {
27 ${CC} -I${S} -fPIC -shared -o libfts.so.${VER} -Wl,-soname,libfts.so.${VER} ${S}/fts.c 33 ${CC} -I${S} -fPIC -shared -Wl,--hash-style=${HASHSTYLE} -o libfts.so.${VER} -Wl,-soname,libfts.so.${VER} ${S}/fts.c
28} 34}
29 35
30do_install() { 36do_install() {