summaryrefslogtreecommitdiffstats
path: root/winsup/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/Makefile.common')
-rw-r--r--winsup/Makefile.common8
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/Makefile.common b/winsup/Makefile.common
index c6143426a..661a4d77e 100644
--- a/winsup/Makefile.common
+++ b/winsup/Makefile.common
@@ -88,7 +88,13 @@ COMPILE_CC:=$(CC) $c -nostdinc $(ALL_CFLAGS) -I$(GCC_INCLUDE)
vpath %.a $(cygwin_build):$(w32api_lib):$(newlib_build)/libc:$(newlib_build)/libm
-unexport MAKEOVERRIDES
+MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
+
+ifneq ($(MAKEOVERRIDES_WORKAROUND),)
+ override MAKE:=$(MAKE) $(MAKEOVERRIDES)
+ MAKEOVERRIDES:=
+ export MAKEOVERRIDES
+endif
.PRECIOUS: %.o