1--- perf/config/utilities.mak.orig 2014-01-25 14:55:32.573320370 +0000
2+++ perf/config/utilities.mak 2014-01-25 15:13:34.174337760 +0000
3@@ -186,9 +186,14 @@
4 endif
5 TRY_CC_MSG=echo " CHK $(3)" 1>&2;
6
7+define newline
8+
9+
10+endef
11+
12 try-cc = $(shell sh -c \
13 'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \
14 $(TRY_CC_MSG) \
15- echo "$(1)" | \
16+ echo -e "$(subst $(newline),\\n,$(1))" | tee _test.c | \
17 $(CC) -x c - $(2) -o "$$TMP" $(TRY_CC_OUTPUT) && echo y; \
18 rm -f "$$TMP"')