diff --git a/cmake/common/px4_base.cmake b/cmake/common/px4_base.cmake index 248f026863..6a0bce6960 100644 --- a/cmake/common/px4_base.cmake +++ b/cmake/common/px4_base.cmake @@ -361,7 +361,10 @@ function(px4_add_common_flags) set(_optimization_flags -fno-strict-aliasing -fomit-frame-pointer + + -fno-math-errno -funsafe-math-optimizations + -ffunction-sections -fdata-sections )