summaryrefslogtreecommitdiff
path: root/tests/modules
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2021-10-20 21:01:30 +0300
committerGitHub <noreply@github.com>2021-10-20 21:01:30 +0300
commit8bf4c2e38c6531af8a8b5bbe3ce469d79a920d35 (patch)
tree7e6af9432ee7173f6e8dc462312ea1a8b45abc30 /tests/modules
parent7d6744c739b25ae27a42f6fcf235e0d6bfbb3e61 (diff)
downloadredis-8bf4c2e38c6531af8a8b5bbe3ce469d79a920d35.tar.gz
Fix test modules build issue on OS X 11. (#9658)
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/modules/Makefile b/tests/modules/Makefile
index bd51b3b97..41d356a1e 100644
--- a/tests/modules/Makefile
+++ b/tests/modules/Makefile
@@ -17,6 +17,13 @@ ifeq ($(uname_S),Linux)
LIBS = -lc
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 \
basics.so \