Skip to content

Commit

Permalink
Fix recently broken 32-bit Mac builds by adding -Wl,-headerpad_max_in…
Browse files Browse the repository at this point in the history
…stall_names

to allow for more rpaths in the executable.
  • Loading branch information
eliotmiranda committed Feb 24, 2020
1 parent 66084d5 commit 98f6b50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.macos32x86/common/Makefile.vm
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ ignore := $(addsuffix .%, $(basename $(wildcard $(BUILD)/vm/*.ignore)))
$(OBJDIR)/$(VM): $(OBJDIR) $(VMOBJ) $(LIBS)
$(CC) -arch $(TARGET_ARCH) -o $(OBJDIR)/version.o $(CFLAGS) $(INCLUDES) $(DEFS) -c $(OSXCOMMONDIR)/version.c
$(CC) -arch $(TARGET_ARCH) -isysroot $(SDK) $(LDFLAGS) $(FRAMEWORKS) \
-Wl,-headerpad_max_install_names \
-o $(OBJDIR)/$(VM) $(VMOBJ) $(filter-out $(call ignore), $(LIBS))

$(OBJDIR)/validImage: $(OBJDIR)/validImage.o $(OBJDIR)/sqUnixSpurMemory.o $(OBJDIR)/sqHeapMap.o
Expand Down

0 comments on commit 98f6b50

Please sign in to comment.