shithub: lwext4

Download patch

ref: d3bb06fff7af3b2162633b4ab79f7f09b3fe3fdb
parent: 9293ce9f84d052c9de71b375ba9f93470cdff456
author: gkostka <[email protected]>
date: Wed Jan 27 18:50:38 EST 2016

bfin-elf.cmake: set -std=gnu99 for blackfin targets (unsupported gnu11)

--- a/toolchain/common/bfin-elf.cmake
+++ b/toolchain/common/bfin-elf.cmake
@@ -7,7 +7,7 @@
 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")