From ed6d2547dfcf8ef94c07e712f7bf625301e23724 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 25 May 2017 22:04:51 +1000 Subject: [PATCH] mpy-cross/Makefile: Guard "override undefine" by test for make feature. make v3.81 doesn't have "undefine" so we can't use it with that version. --- mpy-cross/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mpy-cross/Makefile b/mpy-cross/Makefile index de07d2f6d4..f5b643c6cc 100644 --- a/mpy-cross/Makefile +++ b/mpy-cross/Makefile @@ -1,6 +1,7 @@ # The following is a temporary hack to forefully undefine vars that might have # be defined by a calling Makefile (from recursive make). # TODO: Find a better way to be able to call this Makefile recursively. +ifneq ($(findstring undefine,$(.FEATURES)),) override undefine COPT override undefine CFLAGS_EXTRA override undefine LDFLAGS_EXTRA @@ -8,6 +9,7 @@ override undefine FROZEN_DIR override undefine FROZEN_MPY_DIR override undefine BUILD override undefine PROG +endif include ../py/mkenv.mk