From 6a4b1127fe6d0f43b190e77e9322c22353127d3d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 26 Jul 2023 02:14:35 -0700 Subject: [PATCH] systemd,cairo,ruby: Do not use --no-warn-rwx-segment with lld This option is GNU linker specific and lld is not emitting this warning anyway Signed-off-by: Khem Raj --- conf/nonclangable.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 872f57db..a8c9a9c9 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -316,9 +316,9 @@ COMPILER_RT:pn-qtbase:toolchain-clang:riscv32 = "-rtlib=compiler-rt ${UNWINDLIB} LDFLAGS:append:pn-qtwebengine:toolchain-clang:runtime-gnu:x86 = " -latomic" LDFLAGS:append:pn-qemu:toolchain-clang:x86 = " -latomic" # warning: has a LOAD segment with RWX permissions -LDFLAGS:append:pn-ruby:toolchain-clang:powerpc = " -Wl,--no-warn-rwx-segment" -LDFLAGS:append:pn-cairo:toolchain-clang:powerpc = " -Wl,--no-warn-rwx-segment" -LDFLAGS:append:pn-systemd:toolchain-clang:powerpc = " -Wl,--no-warn-rwx-segment" +LDFLAGS:append:pn-ruby:toolchain-clang:powerpc = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '', ' -Wl,--no-warn-rwx-segment', d)}" +LDFLAGS:append:pn-cairo:toolchain-clang:powerpc = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '', ' -Wl,--no-warn-rwx-segment', d)}" +LDFLAGS:append:pn-systemd:toolchain-clang:powerpc = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '', ' -Wl,--no-warn-rwx-segment', d)}" # glibc is built with gcc and hence encodes some libgcc specific builtins which are not found # when doing static linking with clang using compiler-rt, so use libgcc