forked from Archive/PX4-Autopilot
Added -fPIC flag for only qurt build
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
parent
80b44478e5
commit
63620afead
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue