diff --git a/cmake/compiler/arcmwdt/compiler_flags.cmake b/cmake/compiler/arcmwdt/compiler_flags.cmake index 3f8a98af15e..bfebf98f894 100644 --- a/cmake/compiler/arcmwdt/compiler_flags.cmake +++ b/cmake/compiler/arcmwdt/compiler_flags.cmake @@ -176,11 +176,9 @@ set_property(TARGET compiler-cpp PROPERTY required "-Hcplus" "-Hoff=Stackcheck_a # Compiler flag for turning off thread-safe initialization of local statics set_property(TARGET compiler-cpp PROPERTY no_threadsafe_statics "-fno-threadsafe-statics") -#Compiler flags for disabling position independent code / executable -set_compiler_property(PROPERTY no_position_independent - -fno-pic - -fno-pie -) +# ARC MWDT does not support -fno-pic and -fno-pie flags, +# but it has PIE disabled by default - so no extra flags are required here. +set_compiler_property(PROPERTY no_position_independent "") ################################# # This section covers asm flags #