summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2021-10-20 21:01:30 +0300
committerOran Agra <oran@redislabs.com>2023-01-17 14:59:41 +0200
commit542ccdc9168c6eb792af6e57d261d8d8b1b33a33 (patch)
treee0e0543504fb1d62d794a9ae5d27d151c5142bd2
parentc6bbfec2fffbd43ce53b89aac7983d80b3ca0bcc (diff)
downloadredis-542ccdc9168c6eb792af6e57d261d8d8b1b33a33.tar.gz
Fix test modules build issue on OS X 11. (#9658)
(cherry picked from commit 8bf4c2e38c6531af8a8b5bbe3ce469d79a920d35) (cherry picked from commit 3053337043bcd58047c5f400dbc751475c5e2399)
-rw-r--r--tests/modules/Makefile7
1 files changed, 7 insertions, 0 deletions
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 \