Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override ldshared on non-macos platforms too if CC is overriden #53

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

isuruf
Copy link
Contributor

@isuruf isuruf commented Sep 16, 2021

I don't know why this was enabled only for macos.
If CC is overriden, then LDSHARED should be overriden to use the same compiler,
otherwise, the compiler used in the compile phase and link phase will be two
different compilers.

cc @FFY00

Copy link
Member

@FFY00 FFY00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was introduced in python/cpython@9734568. I don't really understand why this behavior was added as OS X specific, perhaps to avoid changing behavior that nobody reported as an issue?

IMO, this behavior should not be limited to OS X. A quick Google search brings up a stackoverflow question where the user is running into this issue.
https://stackoverflow.com/questions/5986256/python-distutils-gcc-path

@ned-deily what do you think? Do you remember if there was any context we are missing here?

@jaraco
Copy link
Member

jaraco commented Sep 21, 2021

LGTM. I'll merge this PR, but if Ned has context to add, please do.

@jaraco jaraco merged commit 04b8822 into pypa:main Sep 21, 2021
@isuruf
Copy link
Contributor Author

isuruf commented Sep 21, 2021

Thanks @jaraco, @FFY00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants