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

View File

@ -16,6 +16,13 @@ ifneq ($(uname_S),FreeBSD)
LIBS = -lc LIBS = -lc
endif 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 = \ TEST_MODULES = \
commandfilter.so \ commandfilter.so \
basics.so \ basics.so \