bfin-elf.cmake: set -std=gnu99 for blackfin targets (unsupported gnu11)
authorgkostka <kostka.grzegorz@gmail.com>
Wed, 27 Jan 2016 22:50:38 +0000 (23:50 +0100)
committergkostka <kostka.grzegorz@gmail.com>
Wed, 27 Jan 2016 22:50:38 +0000 (23:50 +0100)
toolchain/common/bfin-elf.cmake

index 8b1bcf93955ae057f4bf17e520d2f2972b68ebef..edbe61fc3b59e89e2fadcf047f16c101008302bf 100644 (file)
@@ -7,7 +7,7 @@ set(OBJCOPY             bfin-elf-objcopy)
 set(OBJDUMP             bfin-elf-objdump)
 set(SIZE                bfin-elf-size)
 
-set(CMAKE_C_FLAGS   "${MCPU_FLAGS} -Wall -std=gnu11 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")
+set(CMAKE_C_FLAGS   "${MCPU_FLAGS} -Wall -std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")
 set(CMAKE_CXX_FLAGS "${MCPU_FLAGS} -Wall -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")
 set(CMAKE_ASM_FLAGS "${MCPU_FLAGS} -x assembler-with-cpp" CACHE INTERNAL "asm compiler flags")
 set(CMAKE_EXE_LINKER_FLAGS "${MCPU_FLAGS} -nostartfiles -Wl,--gc-sections" CACHE INTERNAL "exe link flags")