mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
Fix missing rt lib
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user