Skip to content

Commit 1fde62e

Browse files
chrtastephanosio
authored andcommitted
cmake: linker: lld: add missing -no-pie flag
See also #38903 This is required when building tests for native_posix on ubuntu 22.04 using clang-14 from the normal deb repository. Signed-off-by: Christian Taedcke <[email protected]>
1 parent d595148 commit 1fde62e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/linker/lld/target_base.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ macro(toolchain_ld_base)
1111
# TOOLCHAIN_LD_FLAGS comes from compiler/clang/target.cmake
1212
# LINKERFLAGPREFIX comes from linker/lld/target.cmake
1313
zephyr_ld_options(
14+
-no-pie
1415
${TOOLCHAIN_LD_FLAGS}
1516
)
1617

0 commit comments

Comments
 (0)