[OE-core] [PATCH 58/73] fts: Fix linker hash-style option
Khem Raj
raj.khem at gmail.com
Sun Jan 17 11:36:31 UTC 2016
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 at gmail.com>
---
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 d8b4ed2..2539e5d 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() {
--
2.7.0
More information about the Openembedded-core
mailing list