Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tools/ctl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ target_link_libraries(sof-ctl PRIVATE
"-lasound"
)

# tools/lib is only needed as a -L link path for a locally built ALSA.
# Do not let CMake also embed it as an ELF RPATH/RUNPATH: it points into
# the build tree and, once stripped to empty on install, leaves an empty
# DT_RUNPATH tag that trips distro ELF security scanners (scanelf reports
# "NULL DT_RUNPATH"). Skip the build RPATH and keep the install RPATH
# empty so no DT_RUNPATH tag is emitted. See thesofproject/sof#10070.
set_target_properties(sof-ctl PROPERTIES
SKIP_BUILD_RPATH TRUE
INSTALL_RPATH "")

target_compile_options(sof-ctl PRIVATE
-Wall -Werror
)
Expand Down
Loading