Skip to content

Commit 56b1596

Browse files
committed
s
1 parent 445bd06 commit 56b1596

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ else ifneq ($(HAVE_RULES),)
156156
endif
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")
162162
else
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")
164164
endif
165165
override CPPFLAGS += -DHAVE_EXECINFO_H=$(HAVE_EXECINFO_H)
166166

0 commit comments

Comments
 (0)