From 30478fc1bb11a560b08fc3b7562a96605b540685 Mon Sep 17 00:00:00 2001 From: Tony Kelman Date: Mon, 22 Aug 2016 20:08:42 -0400 Subject: [PATCH] Fix the part of #18164 that broke the build of cmake projects with gcc - CC_ARG and CXX_ARG are getting double processed somewhere, so cmake is trying to call the compiler as '/usr/bin/gcc gcc' add cut -s --- Make.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Make.inc b/Make.inc index 1700797373119..5f93cfe3a9a29 100644 --- a/Make.inc +++ b/Make.inc @@ -445,9 +445,9 @@ export CCACHE_CPP2 := yes endif else #USECCACHE CC_BASE := $(shell echo $(CC) | cut -d' ' -f1) -CC_ARG := $(shell echo $(CC) | cut -d' ' -f2-) +CC_ARG := $(shell echo $(CC) | cut -s -d' ' -f2-) CXX_BASE := $(shell echo $(CXX) | cut -d' ' -f1) -CXX_ARG := $(shell echo $(CXX) | cut -d' ' -f2-) +CXX_ARG := $(shell echo $(CXX) | cut -s -d' ' -f2-) endif JFFLAGS := -O2 $(fPIC)