From d63bb6d81dc88ab50ce0fb8e6ee20a6bd08faebf Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Fri, 9 May 2025 17:15:50 -0300 Subject: [PATCH] interpreters/python: Do not link to standard libraries This commit prevents Python from linking to standard libraries. This is needed because Python's `configure` script tests for a set of available functions that are provided by NuttX (instead of the toolchain) and not having `-nostdlib` set may give wrong results. --- interpreters/python/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreters/python/Makefile b/interpreters/python/Makefile index af5c8b89f..295a4bb61 100644 --- a/interpreters/python/Makefile +++ b/interpreters/python/Makefile @@ -56,7 +56,7 @@ CFLAGS += -Wno-shadow -Wno-undef -Wno-format -Wno-builtin-macro-redefined CFLAGS += -Wno-type-limits -Wno-implicit-fallthrough -Wno-char-subscripts CFLAGS += -Wno-sign-compare -Wno-unused-const-variable -Wno-unused-function CFLAGS += -Wno-unused-variable -Wno-overflow -Wno-unused-but-set-variable -CFLAGS += -Wno-strict-prototypes +CFLAGS += -Wno-strict-prototypes -nostdlib DEPPATH += --dep-path $(CPYTHON_UNPACKNAME)$(DELIM)Programs VPATH += :$(CPYTHON_UNPACKNAME)$(DELIM)Programs