GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — gh-115737: Correct the install name for non-framework macOS libPython builds. by freakboy3742 · Pull Request #115750 · python/cpython Conversation
|
|
|
||
| libpython$(LDVERSION).dylib: $(LIBRARY_OBJS) | ||
| $(CC) -dynamiclib $(PY_CORE_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(PYTHONFRAMEWORKINSTALLNAMEPREFIX)/lib/libpython$(LDVERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(DTRACE_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \ | ||
| $(CC) -dynamiclib $(PY_CORE_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(DYLIBINSTALLNAMEPREFIX)/lib/libpython$(LDVERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(DTRACE_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \ |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Since this target is only used for macOS --enable-shared builds (and not for framework or non-shared builds), I think the only change we really need is to revert the original change here, though still removing the obsolete -Wl,-single_module. Then there is no need to make any of the other rename changes. So:
$(CC) -dynamiclib $(PY_CORE_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(LDVERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(DTRACE_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
That's a good point - I'm not sure why I changed this one in the original patch. I can only assume I got a bit search-and-replace happy looking for install_name.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…d library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…d library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…d library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.