mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 12:07:46 +08:00
enable 'relro', 'now', and 'defs' to ensure that all symbols are resolved
This commit is contained in:
@@ -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")
|
||||
add_compile_options(-Wall -Wextra -Werror -Wno-pedantic -Wno-array-bounds)
|
||||
add_compile_options(-Wno-error=deprecated-declarations)
|
||||
add_link_options("-Wl,-z,relro,-z,now,-z,defs")
|
||||
endif()
|
||||
|
||||
# find dependencies
|
||||
|
||||
Reference in New Issue
Block a user