From a14eb26d4bae2022ae82fbd98eff4ff44bac3ecf Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Tue, 28 Nov 2023 08:21:02 -0600 Subject: [PATCH 1/2] Unset D_FORTIFY_SOURCE globally --- py/circuitpy_defns.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk index af5b305b63..4ac727a867 100644 --- a/py/circuitpy_defns.mk +++ b/py/circuitpy_defns.mk @@ -58,6 +58,10 @@ BASE_CFLAGS = \ # -ftime-report # -H +# Micropython's implementation of rutines is incompatible with +# "fortify source", enabled by default on gentoo's crossdev arm-none-eabi-gcc +# gcc version 12.3.1 20230526 (Gentoo 12.3.1_p20230526 p2). Unconditionally disable it. +BASE_CFLAGS += -U_FORTIFY_SOURCE # Set a global CIRCUITPY_DEBUG flag. # Don't just call it "DEBUG": too many libraries use plain DEBUG. From b54330a1c63759ab8b252d2e2397b46d9f9ffdeb Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Tue, 28 Nov 2023 14:54:04 -0600 Subject: [PATCH 2/2] Update py/circuitpy_defns.mk Co-authored-by: Scott Shawcroft --- py/circuitpy_defns.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk index 4ac727a867..696ab762dc 100644 --- a/py/circuitpy_defns.mk +++ b/py/circuitpy_defns.mk @@ -58,7 +58,7 @@ BASE_CFLAGS = \ # -ftime-report # -H -# Micropython's implementation of rutines is incompatible with +# Micropython's implementation of routines is incompatible with # "fortify source", enabled by default on gentoo's crossdev arm-none-eabi-gcc # gcc version 12.3.1 20230526 (Gentoo 12.3.1_p20230526 p2). Unconditionally disable it. BASE_CFLAGS += -U_FORTIFY_SOURCE