Fix missing rt lib

This commit is contained in:
Lorenz Meier 2015-11-03 13:13:25 +01:00
parent 4f9bbf3d78
commit 54d1302555
1 changed files with 7 additions and 2 deletions

View File

@ -176,6 +176,10 @@ if(UNIX AND APPLE)
-include ${PX4_INCLUDE_DIR}visibility.h
)
set(added_exe_linker_flags
-lpthread
)
else()
set(added_definitions
@ -185,11 +189,12 @@ else()
-Dnoreturn_function=__attribute__\(\(noreturn\)\)
-include ${PX4_INCLUDE_DIR}visibility.h
)
endif()
set(added_exe_linker_flags
-lpthread
-lpthread -lrt
)
endif()
# Add the toolchain specific flags