Ports: Patch Makefile to use normal soname flags on Mac

Remove if statement altogether, as suggested by timschumi.
This commit is contained in:
EWouters 2021-11-01 15:52:20 +01:00 committed by Andreas Kling
parent 3a8c423447
commit 617c06e82e
Notes: sideshowbarker 2024-07-18 01:32:04 +09:00

View File

@ -0,0 +1,24 @@
--- zstd-1.5.0/lib/Makefile.orig 2021-05-14 16:59:34.000000000 +0200
+++ zstd-1.5.0/lib/Makefile 2021-11-01 16:24:07.000000000 +0100
@@ -206,17 +206,10 @@
# macOS linker doesn't support -soname, and use different extension
# see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
-ifeq ($(UNAME), Darwin)
- SHARED_EXT = dylib
- SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT)
- SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
- SONAME_FLAGS = -install_name $(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER)
-else
- SONAME_FLAGS = -Wl,-soname=libzstd.$(SHARED_EXT).$(LIBVER_MAJOR)
- SHARED_EXT = so
- SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR)
- SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
-endif
+SONAME_FLAGS = -Wl,-soname=libzstd.$(SHARED_EXT).$(LIBVER_MAJOR)
+SHARED_EXT = so
+SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR)
+SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
SET_CACHE_DIRECTORY = \
+$(MAKE) --no-print-directory $@ \