Skip to content

Commit

Permalink
cmake: linker: lld: add missing -no-pie flag
Browse files Browse the repository at this point in the history
See also
zephyrproject-rtos#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]>
  • Loading branch information
chrta authored and stephanosio committed Nov 22, 2022
1 parent d595148 commit 1fde62e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/linker/lld/target_base.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ macro(toolchain_ld_base)
# TOOLCHAIN_LD_FLAGS comes from compiler/clang/target.cmake
# LINKERFLAGPREFIX comes from linker/lld/target.cmake
zephyr_ld_options(
-no-pie
${TOOLCHAIN_LD_FLAGS}
)

Expand Down

0 comments on commit 1fde62e

Please sign in to comment.