diff options
author | Ryan Schmidt <git@ryandesign.com> | 2018-05-31 02:52:45 -0500 |
---|---|---|
committer | Ryan Schmidt <git@ryandesign.com> | 2018-05-31 02:52:45 -0500 |
commit | a65537a672de845f3f4530050d1e7bd88d51ac67 (patch) | |
tree | 418e88a3b7891ce06f00d90a966b482664dc04e6 | |
parent | 967027c881c8cf7c94d6f0223d079b9466c16cc0 (diff) |
Use -dynamiclib instead of -shared on macOS
-dynamiclib is the correct documented flag to use to create dynamic
libraries on macOS. Newer toolchains recognize -shared as a synonym
of -dynamiclib but older toolchains don't.
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ endif ifeq ($(uname_S),Darwin) DYLIBSUFFIX=dylib DYLIB_MINOR_NAME=$(LIBNAME).$(HIREDIS_SONAME).$(DYLIBSUFFIX) - DYLIB_MAKE_CMD=$(CC) -shared -Wl,-install_name,$(PREFIX)/$(LIBRARY_PATH)/$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS) + DYLIB_MAKE_CMD=$(CC) -dynamiclib -Wl,-install_name,$(PREFIX)/$(LIBRARY_PATH)/$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS) endif all: $(DYLIBNAME) $(STLIBNAME) hiredis-test $(PKGCONFNAME) |