cmake: linker: lld: add missing -no-pie flag
See also https://github.com/zephyrproject-rtos/zephyr/pull/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>
This commit is contained in:
parent
d595148c98
commit
1fde62ef35
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ macro(toolchain_ld_base)
|
||||||
# TOOLCHAIN_LD_FLAGS comes from compiler/clang/target.cmake
|
# TOOLCHAIN_LD_FLAGS comes from compiler/clang/target.cmake
|
||||||
# LINKERFLAGPREFIX comes from linker/lld/target.cmake
|
# LINKERFLAGPREFIX comes from linker/lld/target.cmake
|
||||||
zephyr_ld_options(
|
zephyr_ld_options(
|
||||||
|
-no-pie
|
||||||
${TOOLCHAIN_LD_FLAGS}
|
${TOOLCHAIN_LD_FLAGS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue