Fix missing rt lib

This commit is contained in:
Lorenz Meier
2015-11-09 07:37:31 -08:00
committed by Mark Charlebois
parent ed4e602511
commit 3b0f18e96d
+7 -2
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