From 3053337043bcd58047c5f400dbc751475c5e2399 Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Wed, 20 Oct 2021 21:01:30 +0300 Subject: [PATCH] Fix test modules build issue on OS X 11. (#9658) (cherry picked from commit 8bf4c2e38c6531af8a8b5bbe3ce469d79a920d35) --- tests/modules/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/modules/Makefile b/tests/modules/Makefile index ae611de86..021110292 100644 --- a/tests/modules/Makefile +++ b/tests/modules/Makefile @@ -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 \