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/zephyr#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 <christian.taedcke@lemonbeat.com>
  • Loading branch information
chrta authored and jtbaumann committed Dec 5, 2022
1 parent 5252dce commit aa1de82
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 aa1de82

Please sign in to comment.