summaryrefslogtreecommitdiffstats
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-14 08:24:39 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-19 13:24:38 +0000
commit45e8f1351a8e388ffbe7d50a2694a5bc530f2785 (patch)
treebf2f865f23f33d6f35bd4d35278a0297181bb3b5 /meta/conf/bitbake.conf
parentecbf203e34484731dcb6acc5e75df79cb86e55dc (diff)
downloadpoky-45e8f1351a8e388ffbe7d50a2694a5bc530f2785.tar.gz
mips: Enable gnu-hash-style on glibc
latest glibc 2.31 [1] and binutils [2] has finally added the needed support for gnu hash-style, which brings mips into same fold as other architectures Fix check for MIPS specific section for gnu hash information [1] https://sourceware.org/ml/libc-alpha/2019-06/msg00456.html [2] https://sourceware.org/ml/binutils/2019-07/msg00098.html (From OE-Core rev: 9ff90bf04a4c422feaea25180155e4954648f68c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 62b5466b71..8c44f27751 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -586,8 +586,6 @@ export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \
586BUILDSDK_LDFLAGS = "-Wl,-O1" 586BUILDSDK_LDFLAGS = "-Wl,-O1"
587 587
588LINKER_HASH_STYLE ??= "gnu" 588LINKER_HASH_STYLE ??= "gnu"
589# mips does not support GNU hash style therefore we override
590LINKER_HASH_STYLE_mipsarch = "sysv"
591 589
592TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE') != 'gnu']}" 590TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE') != 'gnu']}"
593 591
@@ -595,6 +593,8 @@ ASNEEDED ?= "-Wl,--as-needed"
595 593
596export LDFLAGS = "${TARGET_LDFLAGS}" 594export LDFLAGS = "${TARGET_LDFLAGS}"
597TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED}" 595TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED}"
596# mips does not support GNU hash style therefore we override
597LINKER_HASH_STYLE_mipsarch_libc-musl = "sysv"
598 598
599# Pass parallel make options to the compile task 599# Pass parallel make options to the compile task
600EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} " 600EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} "