From 4a8223a5478b94e94036ebb3072c518f8a2183d3 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Wed, 30 Sep 2020 13:36:23 -0700 Subject: [PATCH] tests regression: fix failure on older versions of Make Older versions of Make will choke on the # character in the $(shell expression, treating it as the beginning of a comment. Resulting in the following error make unterminated call to function 'shell': missing ')'. Stop. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/639 Signed-off-by: John Johansen Acked-by: Steve Beattie (cherry picked from commit 8cf3534a5b11643c5913e5eb74e491f2f014d792) Signed-off-by: Jon Tourville --- tests/regression/apparmor/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regression/apparmor/Makefile b/tests/regression/apparmor/Makefile index c3d0cfb73..5653d8bb2 100644 --- a/tests/regression/apparmor/Makefile +++ b/tests/regression/apparmor/Makefile @@ -69,8 +69,8 @@ endif # USE_SYSTEM CFLAGS += -g -O0 -Wall -Wstrict-prototypes -USE_SYSCTL:=$(shell echo "#include " | cpp -dM >/dev/null 2>/dev/null && echo true) - +SYSCTL_INCLUDE="\#include " +USE_SYSCTL:=$(shell echo $(SYSCTL_INCLUDE) | cpp -dM >/dev/null 2>/dev/null && echo true) SRC=access.c \ at_secure.c \