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-24 09:40:30 +0000 |
| commit | 2d028b382c234c23cb54f3eb33e70b3c248d9128 (patch) | |
| tree | 3278fd7807e1546dc985d0e3e29a0b8888cafc19 | |
| parent | 8dd1aa8b70c4200d1c9774715fbc7860114dd8a8 (diff) | |
| download | poky-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>
| -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}" | |||
| 22 | 22 | ||
| 23 | do_configure[noexec] = "1" | 23 | do_configure[noexec] = "1" |
| 24 | 24 | ||
| 25 | HASHSTYLE_mips = "sysv" | ||
| 26 | HASHSTYLE_mipsel = "sysv" | ||
| 27 | HASHSTYLE_mips64 = "sysv" | ||
| 28 | HASHSTYLE_mips64el = "sysv" | ||
| 29 | HASHSTYLE = "gnu" | ||
| 30 | |||
| 25 | VER = "0" | 31 | VER = "0" |
| 26 | do_compile () { | 32 | do_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 | ||
| 30 | do_install() { | 36 | do_install() { |
