mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
This commit is contained in:
parent
24ac7c3b27
commit
d3384db33c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340167
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue