Added -fPIC flag for only qurt build

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2016-01-21 21:09:12 -08:00 committed by Julian Oes
parent 80b44478e5
commit 63620afead
1 changed files with 4 additions and 1 deletions

View File

@ -550,13 +550,16 @@ function(px4_add_common_flags)
else()
set(max_optimization -Os)
if ("${OS}" STREQUAL "qurt")
set(PIC_FLAG -fPIC)
endif()
set(optimization_flags
-fno-strict-aliasing
-fomit-frame-pointer
-funsafe-math-optimizations
-ffunction-sections
-fdata-sections
-fPIC
${PIC_FLAG}
)
endif()