diff options
| author | Thomas Weißschuh <[email protected]> | 2025-07-28 13:47:37 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2025-08-06 01:23:36 +0000 |
| commit | 936599ca514973d44a766b7376c6bbdc96b6a8cc (patch) | |
| tree | 94c1825c0cc447b62b0b870a2bc1ed93a996b19b /drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | |
| parent | kconfig: lxdialog: replace strcpy() with strncpy() in inputbox.c (diff) | |
| download | kernel-936599ca514973d44a766b7376c6bbdc96b6a8cc.tar.gz kernel-936599ca514973d44a766b7376c6bbdc96b6a8cc.zip | |
kbuild: userprogs: use correct linker when mixing clang and GNU ld
The userprogs infrastructure does not expect clang being used with GNU ld
and in that case uses /usr/bin/ld for linking, not the configured $(LD).
This fallback is problematic as it will break when cross-compiling.
Mixing clang and GNU ld is used for example when building for SPARC64,
as ld.lld is not sufficient; see Documentation/kbuild/llvm.rst.
Relax the check around --ld-path so it gets used for all linkers.
Fixes: dfc1b168a8c4 ("kbuild: userprogs: use correct lld when linking through clang")
Cc: [email protected]
Signed-off-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c')
0 files changed, 0 insertions, 0 deletions
