changeset 5084:bc18827707b2

. Don't pass -fpch-deps if compiling with clang. This fixes the build with clang 3.4, which errors on unknown parameters (instead of warning as 3.3 on FreeBSD 10.0 did). Submitted by: jkim@FreeBSD.org
author Greg Lewis <glewis@eyesbeyond.com>
date Fri, 25 Apr 2014 22:04:42 -0700
parents 929c0cb1bbc5
children b3e625cd6b12
files make/bsd/makefiles/gcc.make
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/bsd/makefiles/gcc.make	Thu Apr 24 23:20:47 2014 -0400
+++ b/make/bsd/makefiles/gcc.make	Fri Apr 25 22:04:42 2014 -0700
@@ -217,7 +217,11 @@
 
 # Flags for generating make dependency flags.
 ifneq ("${CC_VER_MAJOR}", "2")
-DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
+DEPFLAGS =
+ifeq (,$(findstring clang,$(shell $(CC) -v 2>&1)))
+DEPFLAGS += -fpch-deps
+endif
+DEPFLAGS += -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
 endif
 
 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.