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

This commit is contained in:
Yossi Gottlieb 2021-10-20 21:01:30 +03:00 committed by GitHub
parent 7d6744c739
commit 8bf4c2e38c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \