summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2016-01-27 23:50:38 +0100
committergkostka <kostka.grzegorz@gmail.com>2016-01-27 23:50:38 +0100
commitd3bb06fff7af3b2162633b4ab79f7f09b3fe3fdb (patch)
tree2bb705af4d1eab20749785599ef8b07868f65402
parent9293ce9f84d052c9de71b375ba9f93470cdff456 (diff)
bfin-elf.cmake: set -std=gnu99 for blackfin targets (unsupported gnu11)
-rw-r--r--toolchain/common/bfin-elf.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain/common/bfin-elf.cmake b/toolchain/common/bfin-elf.cmake
index 8b1bcf9..edbe61f 100644
--- a/toolchain/common/bfin-elf.cmake
+++ b/toolchain/common/bfin-elf.cmake
@@ -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")