Skip to content

Commit 2f37c96

Browse files
authored
gnu source: honoring libc requirements (#8147)
1 parent 15da163 commit 2f37c96

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ compiler.path={runtime.tools.xtensa-lx106-elf-gcc.path}/bin/
5656
compiler.sdk.path={runtime.platform.path}/tools/sdk
5757

5858
compiler.libc.path={runtime.platform.path}/tools/sdk/libc/xtensa-lx106-elf
59-
compiler.cpreprocessor.flags=-D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I{compiler.sdk.path}/include" "-I{compiler.sdk.path}/{build.lwip_include}" "-I{compiler.libc.path}/include" "-I{build.path}/core"
59+
compiler.cpreprocessor.flags=-D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-I{compiler.sdk.path}/include" "-I{compiler.sdk.path}/{build.lwip_include}" "-I{compiler.libc.path}/include" "-I{build.path}/core"
6060

6161
compiler.c.cmd=xtensa-lx106-elf-gcc
6262
compiler.c.flags=-c {compiler.warning_flags} -std=gnu17 {build.stacksmash_flags} -Os -g -free -fipa-pta -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -falign-functions=4 -MMD -ffunction-sections -fdata-sections {build.exception_flags} {build.sslflags} {build.mmuflags} {build.non32xferflags}

tools/platformio-build.py

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def scons_patched_match_splitext(path, suffixes=None):
7373
"-mtext-section-literals",
7474
"-falign-functions=4",
7575
"-U__STRICT_ANSI__",
76+
"-D_GNU_SOURCE",
7677
"-ffunction-sections",
7778
"-fdata-sections",
7879
"-Wall",

0 commit comments

Comments
 (0)