From 9bb230fa3d578968271182e6244a4c11cbef5725 Mon Sep 17 00:00:00 2001 From: Michael Schaeuble Date: Tue, 18 Oct 2016 16:26:53 +0200 Subject: [PATCH] Remove obsolete linker flag for Bebop build The pthread linker flags were changed in c6a2641 and it was questioned in #5504 if the exception for the Bebop is necessary. It is not, so remove those lines from the cmake file. --- cmake/posix/px4_impl_posix.cmake | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/cmake/posix/px4_impl_posix.cmake b/cmake/posix/px4_impl_posix.cmake index 49647e695e..73f1b55fef 100644 --- a/cmake/posix/px4_impl_posix.cmake +++ b/cmake/posix/px4_impl_posix.cmake @@ -174,16 +174,6 @@ function(px4_os_add_flags) mavlink/include/mavlink ) -# This block sets added_exe_linker_flags. -if ("${BOARD}" STREQUAL "bebop") - # Use the -pthread if the firmware is build for the parrot bebop. - # This resolves some linker errors in DriverFramework, when building - # a static target. - set(added_exe_linker_flags "-pthread") -else() - set(added_exe_linker_flags) -endif() - # This block sets added_definitions and added_cxx_flags. if(UNIX AND APPLE) set(added_definitions @@ -228,6 +218,8 @@ else() endif() +set(added_exe_linker_flags) + # This block sets added_c_flags (appends to others). if ("${BOARD}" STREQUAL "eagle" OR "${BOARD}" STREQUAL "excelsior")