Add TRACETOOLS_NO_RDYNAMIC option to not export -rdynamic
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
This commit is contained in:
parent
c086d8b843
commit
8bf8255b02
1 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,7 @@ else()
|
||||||
set(DISABLED_DEFAULT OFF)
|
set(DISABLED_DEFAULT OFF)
|
||||||
endif()
|
endif()
|
||||||
option(TRACETOOLS_DISABLED "Explicitly disable support for tracing" ${DISABLED_DEFAULT})
|
option(TRACETOOLS_DISABLED "Explicitly disable support for tracing" ${DISABLED_DEFAULT})
|
||||||
|
option(TRACETOOLS_NO_RDYNAMIC "Disable export of -rdynamic link flag" OFF)
|
||||||
|
|
||||||
if(NOT TRACETOOLS_DISABLED)
|
if(NOT TRACETOOLS_DISABLED)
|
||||||
# Set TRACETOOLS_LTTNG_ENABLED if we can find lttng-ust
|
# Set TRACETOOLS_LTTNG_ENABLED if we can find lttng-ust
|
||||||
|
@ -118,7 +119,9 @@ if(TRACETOOLS_LTTNG_ENABLED)
|
||||||
# using function pointers directly/without std::bind()
|
# using function pointers directly/without std::bind()
|
||||||
# (the flag should not be used on Windows, but TRACETOOLS_LTTNG_ENABLED
|
# (the flag should not be used on Windows, but TRACETOOLS_LTTNG_ENABLED
|
||||||
# should never be true on Windows anyway, so there is no need to check)
|
# should never be true on Windows anyway, so there is no need to check)
|
||||||
|
if(NOT TRACETOOLS_NO_RDYNAMIC)
|
||||||
ament_export_link_flags("-rdynamic")
|
ament_export_link_flags("-rdynamic")
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
ament_export_libraries(${PROJECT_NAME})
|
ament_export_libraries(${PROJECT_NAME})
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue