mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03:00
Ports: Patch Makefile to use normal soname flags on Mac
Remove if statement altogether, as suggested by timschumi.
This commit is contained in:
parent
3a8c423447
commit
617c06e82e
Notes:
sideshowbarker
2024-07-18 01:32:04 +09:00
Author: https://github.com/EWouters Commit: https://github.com/SerenityOS/serenity/commit/617c06e82ed Pull-request: https://github.com/SerenityOS/serenity/pull/10746 Issue: https://github.com/SerenityOS/serenity/issues/10066 Reviewed-by: https://github.com/timschumi
24
Ports/zstd/patches/fix_soname_flags.patch
Normal file
24
Ports/zstd/patches/fix_soname_flags.patch
Normal 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 $@ \
|
Loading…
Reference in New Issue
Block a user