enable 'relro', 'now', and 'defs' to ensure that all symbols are resolved

This commit is contained in:
Christian Rauch
2026-07-24 10:53:27 +02:00
parent 217f4abee4
commit 293cd7bbb0
+1
View File
@@ -14,6 +14,7 @@ option(INSTALL_UDEV_RULES "Install udev rule for Orbbec cameras" ON)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Werror -Wno-pedantic -Wno-array-bounds) add_compile_options(-Wall -Wextra -Werror -Wno-pedantic -Wno-array-bounds)
add_compile_options(-Wno-error=deprecated-declarations) add_compile_options(-Wno-error=deprecated-declarations)
add_link_options("-Wl,-z,relro,-z,now,-z,defs")
endif() endif()
# find dependencies # find dependencies