Skip to content

Commit 4eab749

Browse files
committed
fix(build): add headerpad_max_install_names to LDFLAGS for Apple platforms
1 parent 9b30025 commit 4eab749

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ else ifeq ($(PLATFORM),macos)
5555
LDFLAGS += -arch $(ARCH)
5656
CFLAGS += -arch $(ARCH)
5757
endif
58-
LDFLAGS += -dynamiclib -undefined dynamic_lookup
58+
LDFLAGS += -dynamiclib -undefined dynamic_lookup -headerpad_max_install_names
5959
STRIP = strip -x -S $@
6060
else ifeq ($(PLATFORM),android)
6161
ifndef ARCH # Set ARCH to find Android NDK's Clang compiler, the user should set the ARCH
@@ -75,13 +75,13 @@ else ifeq ($(PLATFORM),android)
7575
else ifeq ($(PLATFORM),ios)
7676
TARGET := $(DIST_DIR)/vector.dylib
7777
SDK := -isysroot $(shell xcrun --sdk iphoneos --show-sdk-path) -miphoneos-version-min=11.0
78-
LDFLAGS += -dynamiclib $(SDK)
78+
LDFLAGS += -dynamiclib $(SDK) -headerpad_max_install_names
7979
CFLAGS += -arch arm64 $(SDK)
8080
STRIP = strip -x -S $@
8181
else ifeq ($(PLATFORM),ios-sim)
8282
TARGET := $(DIST_DIR)/vector.dylib
8383
SDK := -isysroot $(shell xcrun --sdk iphonesimulator --show-sdk-path) -miphonesimulator-version-min=11.0
84-
LDFLAGS += -arch x86_64 -arch arm64 -dynamiclib $(SDK)
84+
LDFLAGS += -arch x86_64 -arch arm64 -dynamiclib $(SDK) -headerpad_max_install_names
8585
CFLAGS += -arch x86_64 -arch arm64 $(SDK)
8686
STRIP = strip -x -S $@
8787
else # linux

0 commit comments

Comments
 (0)