META_MODE: Set HOST_CXX and HOST_CPP and chain them down into CXX/CPP for host builds.
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
6348241c12
commit
9cef5cac68
@ -29,7 +29,11 @@ CXXFLAGS_LAST+= -I/usr/include
|
||||
UPDATE_DEPENDFILE?= no
|
||||
.endif
|
||||
HOST_CC?= /usr/bin/cc
|
||||
HOST_CFLAGS+= -DHOSTPROG
|
||||
CC= ${HOST_CC}
|
||||
HOST_CXX?= /usr/bin/c++
|
||||
CXX= ${HOST_CXX}
|
||||
HOST_CPP?= /usr/bin/cpp
|
||||
CPP= ${HOST_CPP}
|
||||
HOST_CFLAGS+= -DHOSTPROG
|
||||
CFLAGS+= ${HOST_CFLAGS}
|
||||
.endif
|
||||
|
@ -214,9 +214,12 @@ PATH:= ${PATH:S,:, ,g:@d@${exists(${TOOLSDIR}$d):?${TOOLSDIR}$d:}@:ts:}:${PATH}
|
||||
.export PATH
|
||||
.if exists(${TOOLSDIR}/usr/bin/cc)
|
||||
HOST_CC?= ${TOOLSDIR}/usr/bin/cc
|
||||
CC?= ${TOOLSDIR}/usr/bin/cc
|
||||
CXX?= ${TOOLSDIR}/usr/bin/c++
|
||||
.export HOST_CC CC CXX
|
||||
CC?= ${HOST_CC}
|
||||
HOST_CXX?= ${TOOLSDIR}/usr/bin/c++
|
||||
CXX?= ${HOST_CXX}
|
||||
HOST_CPP?= ${TOOLSDIR}/usr/bin/cpp
|
||||
CPP?= ${HOST_CPP}
|
||||
.export HOST_CC CC HOST_CXX CXX HOST_CPP CPP
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user