From d3384db33c23930902621a7b96b5a869b83a4bfd Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Mon, 5 Nov 2018 22:51:44 +0000 Subject: [PATCH] Keep inheriting $PATH when using system linker/compiler I missed this case when testing r340157. For now just keep $PATH when we aren't bootstrapping a compiler so that the build can find cc/c++/ld without an absolute path. Reported by: yuripv --- Makefile.inc1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index ceb8d0b28073..f21f305db208 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -589,7 +589,12 @@ STRICTTMPPATH= ${XPATH}:${BPATH}:${UNIVERSE_TOOLCHAIN_PATH} # the build to break on other systems that don't have that tool. For now we # still allow using the old behaviour (inheriting $PATH) if # BUILD_WITH_STRICT_TMPPATH is set to 0 but this will eventually be removed. +.if ${USING_SYSTEM_LINKER} != "no" || ${USING_SYSTEM_COMPILER} != "no" +# strict $PATH does not work yet with USING_SYSTEM_LINKER/USING_SYSTEM_COMPILER +BUILD_WITH_STRICT_TMPPATH?=0 +.else BUILD_WITH_STRICT_TMPPATH?=1 +.endif .if ${BUILD_WITH_STRICT_TMPPATH} != 0 TMPPATH= ${STRICTTMPPATH} .else