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

(cherry picked from commit 8bf4c2e38c)
This commit is contained in:
Yossi Gottlieb 2021-10-20 21:01:30 +03:00 committed by Oran Agra
parent 215c5eacb0
commit 3053337043
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,13 @@ ifneq ($(uname_S),FreeBSD)
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 \