Skip to content

bpo-34449: HP aCC complains about invalid -fPIC on HP-UX #8847

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

Merged
merged 4 commits into from
May 19, 2022

Conversation

michael-o
Copy link
Contributor

@michael-o michael-o commented Aug 21, 2018

-fPIC is code generation option and not a link option. At compile time '+z' is
already properly used with HP aCC and shared libraries are correctly linked
with '+b'. This switch can safely be dropped.

Patch by Michael Osipov.

https://bugs.python.org/issue34449

-fPIC is code generation option and not a link option. At compile time '+z' is
already properly used with HP aCC and shared libraries are correctly linked
with '+b'. This switch can safely be dropped.

Patch by Michael Osipov.
@ghost
Copy link

ghost commented May 19, 2022

All commit authors signed the Contributor License Agreement.
CLA signed

@erlend-aasland
Copy link
Contributor

@michael-o, can you please sign the CLA?

@michael-o
Copy link
Contributor Author

@erlend-aasland I am certain that I already did because other PRs from me have been absorbed into Python already. See here: https://github.com/python/cpython/commits?author=michael-o

@michael-o
Copy link
Contributor Author

Ah, it was a different email address. This I can change.

@erlend-aasland
Copy link
Contributor

FYI, CLA is still failing. We cannot merge without it.

@michael-o
Copy link
Contributor Author

@erlend-aasland Just signed. Please check.

@erlend-aasland
Copy link
Contributor

@tiran, what do you think of this? IMO, it is nice to slim down setup.py, even though its just a couple of lines. OTOH, most of this code will probably go soon anyway (gh-90005). But, having less stuff to think about for gh-90005 is also a good thing. So I'm +1 :)

@tiran tiran added the needs backport to 3.11 only security fixes label May 19, 2022
Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

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

SGTM

@michael-o
Copy link
Contributor Author

SGTM

Awesome, 4 years of patience payed out. GCC has been dead for a very long time on HP-UX.

@erlend-aasland erlend-aasland self-assigned this May 19, 2022
@erlend-aasland erlend-aasland merged commit 09be18a into python:main May 19, 2022
@miss-islington
Copy link
Contributor

Thanks @michael-o for the PR, and @erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 19, 2022
…ythonGH-8847)

At compile time, '+z' is already properly used with HP aCC, and shared
libraries are correctly linked with '+b'. The '-fPIC' switch can safely be
dropped.
(cherry picked from commit 09be18a)

Co-authored-by: Michael Osipov <[email protected]>
@bedevere-bot
Copy link

GH-92977 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label May 19, 2022
miss-islington added a commit that referenced this pull request May 19, 2022
At compile time, '+z' is already properly used with HP aCC, and shared
libraries are correctly linked with '+b'. The '-fPIC' switch can safely be
dropped.
(cherry picked from commit 09be18a)

Co-authored-by: Michael Osipov <[email protected]>
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.

6 participants