The dependencies are computed with CC even if sources are C++, when building

when building with an external gcc, we want to be able to pass the path to
the libc++ headers so dependencies are correctly computed for C++ source files.
Add a DEPFLAGS for that purpose

Reviewed by:	imp
This commit is contained in:
Baptiste Daroussin 2014-10-21 19:56:45 +00:00
parent b564c5d6aa
commit 8447c44fe7

View File

@ -49,7 +49,7 @@ GTAGSFLAGS?= -o
HTAGSFLAGS?=
.if ${CC} != "cc"
MKDEPCMD?= CC='${CC}' mkdep
MKDEPCMD?= CC='${CC} ${DEPFLAGS}' mkdep
.else
MKDEPCMD?= mkdep
.endif