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>
This commit is contained in:
parent
8dd1aa8b70
commit
2d028b382c
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue