Fix test modules build issue on OS X 11. (#9658)

(cherry picked from commit 8bf4c2e38c)
(cherry picked from commit 3053337043)
This commit is contained in:
Yossi Gottlieb
2023-01-17 14:59:41 +02:00
committed by Oran Agra
parent c6bbfec2ff
commit 542ccdc916
+7
View File
@@ -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 \