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,7 +156,7 @@ else ifneq ($(HAVE_RULES),)
156156endif
157157
158158# older make versions do not support # in $(shell) and newer ones handle the escape sequence literally
159- REQUIRE_ESCAPE =$(shell echo "\#define DEF" | $(CXX ) -c -xc - && echo "1" || echo "0")
159+ REQUIRE_ESCAPE =$(shell echo "\#define DEF" | $(CXX ) -c -xc - 2> /dev/null && echo "1" || echo "0")
160160ifeq ($(REQUIRE_ESCAPE ) ,1)
161161 HAVE_EXECINFO_H =$(shell echo "\#include <execinfo.h>" | $(CXX ) -c -xc - 2> /dev/null && echo "1" || echo "0")
162162else
Original file line number Diff line number Diff line change @@ -772,7 +772,7 @@ int main(int argc, char **argv)
772772 << " endif\n\n " ;
773773
774774 fout << " # older make versions do not support # in $(shell) and newer ones handle the escape sequence literally\n "
775- << " REQUIRE_ESCAPE=$(shell echo \"\\ #define DEF\" | $(CXX) -c -xc - && echo \" 1\" || echo \" 0\" )\n "
775+ << " REQUIRE_ESCAPE=$(shell echo \"\\ #define DEF\" | $(CXX) -c -xc - 2> /dev/null && echo \" 1\" || echo \" 0\" )\n "
776776 << " ifeq ($(REQUIRE_ESCAPE),1)\n "
777777 << " HAVE_EXECINFO_H=$(shell echo \"\\ #include <execinfo.h>\" | $(CXX) -c -xc - 2> /dev/null && echo \" 1\" || echo \" 0\" )\n "
778778 << " else\n "
You can’t perform that action at this time.
0 commit comments