From bdf4f19867b08bcc20327a5f258a8dd65a3dea5d Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 11 Apr 2018 22:17:39 -0400 Subject: [PATCH] enable -fno-math-errno as we never check errno (#9281) - disables setting of the errno variable as required by C89/C99 on calling math library routines --- cmake/common/px4_base.cmake | 3 +++ 1 file changed, 3 insertions(+) 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 )