mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 22:35:35 +00:00
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 <john.johansen@canonical.com> Acked-by: Steve Beattie <steve.beattie@canonical.com>
This commit is contained in:
@@ -67,7 +67,8 @@ system aa-exec by adding USE_SYSTEM=1 to your make command.${nl}\
|
||||
LDLIBS += -Wl,-Bstatic -lapparmor -Wl,-Bdynamic -lpthread
|
||||
endif # USE_SYSTEM
|
||||
|
||||
USE_SYSCTL:=$(shell echo "#include <sys/sysctl.h>" | cpp -dM >/dev/null 2>/dev/null && echo true)
|
||||
+SYSCTL_INCLUDE="\#include <sys/sysctl.h>"
|
||||
+USE_SYSCTL:=$(shell echo $(SYSCTL_INCLUDE) | cpp -dM >/dev/null 2>/dev/null && echo true)
|
||||
|
||||
CFLAGS += -g -O0 $(EXTRA_WARNINGS)
|
||||
|
||||
|
Reference in New Issue
Block a user