8000 Merge pull request #8663 from jepler/disable-fortify-source · JettIsOnTheNet/circuitpython@ad0949d · GitHub
[go: up one dir, main page]

Skip to content

Commit ad0949d

Browse files
authored
Merge pull request adafruit#8663 from jepler/disable-fortify-source
Unset D_FORTIFY_SOURCE globally
2 parents d509267 + b54330a commit ad0949d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

py/circuitpy_defns.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ BASE_CFLAGS = \
5858
# -ftime-report
5959
# -H
6060

61+
# Micropython's implementation of <string.h> routines is incompatible with
62+
# "fortify source", enabled by default on gentoo's crossdev arm-none-eabi-gcc
63+
# gcc version 12.3.1 20230526 (Gentoo 12.3.1_p20230526 p2). Unconditionally disable it.
64+
BASE_CFLAGS += -U_FORTIFY_SOURCE
6165

6266
# Set a global CIRCUITPY_DEBUG flag.
6367
# Don't just call it "DEBUG": too many libraries use plain DEBUG.

0 commit comments

Comments
 (0)
0