summaryrefslogtreecommitdiff
path: root/src/modules/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/Makefile')
-rw-r--r--src/modules/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/Makefile b/src/modules/Makefile
index 3db19e79a..c4bc7eb1a 100644
--- a/src/modules/Makefile
+++ b/src/modules/Makefile
@@ -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
+
.SUFFIXES: .c .so .xo .o
all: helloworld.so hellotype.so helloblock.so hellocluster.so hellotimer.so hellodict.so hellohook.so helloacl.so