mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
package/micropython: fix passing multiple CFLAGS
Before commit50bc5aa17b(package/micropython: fix segfault at exit() with gcc >= 14), only architecture-specific CFLAGS were passed, and only one per arch. But50bc5aa17bintroduced a non-arch CFLAGS, for gcc versions, so when the build happens for an architecture for which there is a CFLAGS, and when gcc is 14 or newer, there are two CFLAGS added, causing build failures: [...] /usr/bin/make [...] CFLAGS_EXTRA=-DMICROPY_GCREGS_SETJMP=1 -DMICROPY_NLR_SETJMP=1 [...] /usr/bin/make: invalid option -- 'D' /usr/bin/make: invalid option -- 'M' Usage: make [options] [target] ... The fix is simple enough: just quote the CFLAGS. Fixes: https://autobuild.buildroot.org/results/b18/b18d6fa9938c1267a771fdbcd8b4c3df812cd6b9/ Fixes:50bc5aa17bSigned-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Chris Packham <judge.packham@gmail.com> Cc: Romain Naour <romain.naour@gmail.com> Signed-off-by: Julien Olivain <ju.o@free.fr> (cherry picked from commitab906018c9) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
ac4b335544
commit
9efd1a9ea8
@@ -42,7 +42,7 @@ MICROPYTHON_MAKE_OPTS += \
|
||||
MICROPY_PY_BTREE=0 \
|
||||
MICROPY_PY_USSL=0 \
|
||||
CROSS_COMPILE=$(TARGET_CROSS) \
|
||||
CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS) \
|
||||
CFLAGS_EXTRA="$(MICROPYTHON_CFLAGS)" \
|
||||
LDFLAGS_EXTRA="$(TARGET_LDFLAGS)" \
|
||||
CWARN=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user