]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-149351: Avoid possible broken macOS framework install names when DESTDIR is speci...
authorNed Deily <nad@python.org>
Mon, 4 May 2026 11:55:06 +0000 (07:55 -0400)
committerGitHub <noreply@github.com>
Mon, 4 May 2026 11:55:06 +0000 (07:55 -0400)
Makefile.pre.in
Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst [new file with mode: 0644]

index 3c166470b6c143a78f12bf56e1a54873bd47c152..5789d33e7f4456ff1b2d6e42898fda7b358660e7 100644 (file)
@@ -1071,7 +1071,7 @@ $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
        $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
        $(CC) -o $(LDLIBRARY) $(PY_CORE_LDFLAGS) -dynamiclib \
                -all_load $(LIBRARY) \
-               -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLNAMEPREFIX)/$(PYTHONFRAMEWORK) \
+               -install_name $(PYTHONFRAMEWORKINSTALLNAMEPREFIX)/$(PYTHONFRAMEWORK) \
                -compatibility_version $(VERSION) \
                -current_version $(VERSION) \
                -framework CoreFoundation $(LIBS);
diff --git a/Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst b/Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst
new file mode 100644 (file)
index 0000000..792c8d3
--- /dev/null
@@ -0,0 +1,2 @@
+Avoid possible broken macOS framework install names when DESTDIR is
+specified during builds.