mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Add a hack to workaround ZSH as BUILDENV_SHELL breaking CPUTYPE.
ZSH considers CPUTYPE a magic variable that will be the output of 'uname -m' even if already set in environment when starting up. The CPUTYPE?= check in Makefile.inc1 and supporting overriding CPUTYPE manually in the buildenv shell make automatic workarounds too tricky here. ZSH should really respect variables set in the environment before trashing them. X-MFC-With: r290423 MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
ce8fe66f49
commit
a55d4ddd20
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290523
@ -784,6 +784,9 @@ buildenvvars: .PHONY
|
||||
BUILDENV_DIR?= ${.CURDIR}
|
||||
buildenv: .PHONY
|
||||
@echo Entering world for ${TARGET_ARCH}:${TARGET}
|
||||
.if ${BUILDENV_SHELL:M*zsh*}
|
||||
@echo For ZSH you must run: export CPUTYPE=${TARGET_CPUTYPE}
|
||||
.endif
|
||||
@cd ${BUILDENV_DIR} && env ${WMAKEENV} BUILDENV=1 ${BUILDENV_SHELL} \
|
||||
|| true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user