File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,11 +156,11 @@ else ifneq ($(HAVE_RULES),)
156156endif
157157
158158# older make versions do not support # in $(shell) and newer ones do not handle the escape sequence right
159- SUPPORTS_HASH =$(shell echo "#define DEF" | $(CXX ) -c -xc - && echo "1" || echo "0")
160- ifeq ($(SUPPORTS_HASH ) ,1)
159+ REQUIRE_ESCAPE =$(shell echo "\ #define DEF" | $(CXX ) -c -xc - && echo "1" || echo "0")
160+ ifeq ($(REQUIRE_ESCAPE ) ,1)
161161 HAVE_EXECINFO_H=$(shell echo "\# include <execinfo.h>" | $(CXX) -c -xc - && echo "1" || echo "0")
162162else
163- HAVE_EXECINFO_H=$(shell echo "\ # include <execinfo.h>" | $(CXX) -c -xc - && echo "1" || echo "0")
163+ HAVE_EXECINFO_H=$(shell echo "# include <execinfo.h>" | $(CXX) -c -xc - && echo "1" || echo "0")
164164endif
165165override CPPFLAGS += -DHAVE_EXECINFO_H=$(HAVE_EXECINFO_H )
166166
You can’t perform that action at this time.
0 commit comments