Refine the TARGET{,_ARCH} hack to not break CC being set to something

relying on PATH.

Approved by:	netchild
This commit is contained in:
Marius Strobl 2010-09-22 19:51:27 +00:00
parent b1ac16db18
commit c08d958c6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261641
2 changed files with 6 additions and 4 deletions

View file

@ -90,9 +90,10 @@ PKGNAMESUFFIX?= -devel
# Hack to allow building with TARGET and TARGET_ARCH set in the environment # Hack to allow building with TARGET and TARGET_ARCH set in the environment
# as done by the release building scripts. # as done by the release building scripts.
SETENV= /usr/bin/env -i -P ${PATH} SETENV= /usr/bin/env -i
MAKE_ENV= PATH=${PATH}
MAKE_ENV= CCOM=cc GMAKE_NOWARN=true INS_BASE=${LOCALBASE} \ MAKE_ENV+= CCOM=cc GMAKE_NOWARN=true INS_BASE=${LOCALBASE} \
INS_RBASE=${LOCALBASE} INS_RBASE=${LOCALBASE}
CDRTLSTARGET= ${ARCH}-freebsd-cc CDRTLSTARGET= ${ARCH}-freebsd-cc

View file

@ -86,9 +86,10 @@ PLIST_SUB+= RSCSI="@comment "
# Hack to allow building with TARGET and TARGET_ARCH set in the environment # Hack to allow building with TARGET and TARGET_ARCH set in the environment
# as done by the release building scripts. # as done by the release building scripts.
SETENV= /usr/bin/env -i -P ${PATH} SETENV= /usr/bin/env -i
MAKE_ENV= PATH=${PATH}
MAKE_ENV= CCOM=cc GMAKE_NOWARN=true INS_BASE=${LOCALBASE} \ MAKE_ENV+= CCOM=cc GMAKE_NOWARN=true INS_BASE=${LOCALBASE} \
INS_RBASE=${LOCALBASE} INS_RBASE=${LOCALBASE}
CDRTLSTARGET= ${ARCH}-freebsd-cc CDRTLSTARGET= ${ARCH}-freebsd-cc