Skip to content

Commit

Permalink
Fix Makefile to avoid unwanted @executable_path linkage in libMacport…
Browse files Browse the repository at this point in the history
…sLegacySystem.B.dylib
  • Loading branch information
cjones051073 committed May 3, 2021
1 parent 9e9e6bf commit 4de7b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 $@
Expand Down

0 comments on commit 4de7b2b

Please sign in to comment.