Skip to content

Commit

Permalink
libhugetlbfs: Always use BFD linker when using clang toolchain
Browse files Browse the repository at this point in the history
it uses its own linker wrapper which calls LD variable in the end
and expects it to be traditional GNU linker. Lets provide it
what it needs.

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Oct 11, 2024
1 parent 835896f commit 52810ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conf/nonclangable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ LDFLAGS:remove:pn-bluez5:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURE
LDFLAGS:append:pn-bluez5:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}"

LD:pn-gnu-efi:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', '${HOST_PREFIX}ld${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', d)}"
LD:pn-libhugetlbfs:toolchain-clang = "${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}"
TOOLCHAIN:pn-perf = "gcc"

# See https://github.com/llvm/llvm-project/issues/108262
Expand Down

0 comments on commit 52810ca

Please sign in to comment.