Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2014 19:56:45 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273404 - head/share/mk
Message-ID:  <201410211956.s9LJujEY057776@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Oct 21 19:56:45 2014
New Revision: 273404
URL: https://svnweb.freebsd.org/changeset/base/273404

Log:
  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

Modified:
  head/share/mk/bsd.dep.mk

Modified: head/share/mk/bsd.dep.mk
==============================================================================
--- head/share/mk/bsd.dep.mk	Tue Oct 21 19:45:08 2014	(r273403)
+++ head/share/mk/bsd.dep.mk	Tue Oct 21 19:56:45 2014	(r273404)
@@ -49,7 +49,7 @@ GTAGSFLAGS?=	-o
 HTAGSFLAGS?=
 
 .if ${CC} != "cc"
-MKDEPCMD?=	CC='${CC}' mkdep
+MKDEPCMD?=	CC='${CC} ${DEPFLAGS}' mkdep
 .else
 MKDEPCMD?=	mkdep
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410211956.s9LJujEY057776>