From 4de7b2b365ffa5afb4ef3c5858ca3ad50b4628ac Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 3 May 2021 09:12:53 +0100 Subject: [PATCH] Fix Makefile to avoid unwanted @executable_path linkage in libMacportsLegacySystem.B.dylib --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7fe67bb..e7dccaf 100644 --- a/Makefile +++ b/Makefile @@ -209,7 +209,7 @@ endef all: dlib slib syslib dlib: $(BUILDDLIBPATH) slib: $(BUILDSLIBPATH) -syslib: $(BUILDSYSLIBPATH) +syslib: dlib $(BUILDSYSLIBPATH) # Special rules for special implementations. # For instance, functions using struct stat need to be implemented multiple @@ -251,7 +251,7 @@ $(BUILDDLIBPATH): $(DLIBOBJS) $(MULTIDLIBOBJS) $(CC) $(BUILDDLIBFLAGS) $(LDFLAGS) $^ -o $@ # Wrapped libSystem relies on reexport which does not work on Darwin20+ -$(BUILDSYSLIBPATH): $(BUILDDLIBPATH) $(DLIBOBJS) $(MULTIDLIBOBJS) +$(BUILDSYSLIBPATH): $(DLIBOBJS) $(MULTIDLIBOBJS) ifeq ($(shell test $(PLATFORM) -le $(MAX_DARWIN_REEXPORT); echo $$?),0) $(MKINSTALLDIRS) $(BUILDDLIBDIR) $(CC) $(BUILDSYSLIBFLAGS) $(LDFLAGS) $(SYSREEXPORTFLAG) $^ -o $@