From 542ccdc9168c6eb792af6e57d261d8d8b1b33a33 Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Wed, 20 Oct 2021 21:01:30 +0300 Subject: Fix test modules build issue on OS X 11. (#9658) (cherry picked from commit 8bf4c2e38c6531af8a8b5bbe3ce469d79a920d35) (cherry picked from commit 3053337043bcd58047c5f400dbc751475c5e2399) --- tests/modules/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/modules/Makefile b/tests/modules/Makefile index 97f37f21d..465d960f3 100644 --- a/tests/modules/Makefile +++ b/tests/modules/Makefile @@ -11,6 +11,13 @@ else SHOBJ_LDFLAGS ?= -bundle -undefined dynamic_lookup endif +# OS X 11.x doesn't have /usr/lib/libSystem.dylib and needs an explicit setting. +ifeq ($(uname_S),Darwin) +ifeq ("$(wildcard /usr/lib/libSystem.dylib)","") +LIBS = -L /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lsystem +endif +endif + TEST_MODULES = \ commandfilter.so \ testrdb.so \ -- cgit v1.2.1