diff options
author | sundb <sundbcn@gmail.com> | 2022-02-02 03:39:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 21:39:10 +0200 |
commit | 948285de39e0c19463a99e73c621298d30ec6a87 (patch) | |
tree | 6ff0ba141589ecb74ca24923c83ce47ffd57822e /src/modules/Makefile | |
parent | 6b5b3ca4148b058210f7c32096a6d1201a2121d9 (diff) | |
download | redis-948285de39e0c19463a99e73c621298d30ec6a87.tar.gz |
Fix src/modules build issue on OS X 11 (#10224)
Diffstat (limited to 'src/modules/Makefile')
-rw-r--r-- | src/modules/Makefile | 7 |
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 |