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

depends: always pass --with-pic to autoconf builds #9671

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

tobtoht
Copy link
Collaborator

@tobtoht tobtoht commented Jan 3, 2025

No description provided.

Copy link
Collaborator

@0xFFFC0000 0xFFFC0000 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this. Question. Do we need pic for everything? Usually pic codeis more bloated.

@tobtoht
Copy link
Collaborator Author

tobtoht commented Jan 7, 2025

My understanding is that this flag instructs libtool to prefer pic objects, which may or may not fix a build issue. Setting the flag everywhere can't hurt.

See also the libtool documentation (Note: --with-pic was renamed to --enable-pic)

Precision Independent Code is a security feature. Our release binaries are already PIE.

@tobtoht tobtoht marked this pull request as ready for review January 25, 2025 10:25
Copy link
Collaborator

@0xFFFC0000 0xFFFC0000 left a comment

Choose a reason for hiding this comment

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

I am approving.

If there was easy way to enable and disable pic when building depends that would’ve been great.

Copy link

@MrCyjaneK MrCyjaneK left a comment

Choose a reason for hiding this comment

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

Also in full support, I had to enable pic for contrib/depends manually when building wallet_api in monero_c in order to link for iOS and android, this change remove at least a couple lines of extra patches.

While not this exact approach I have also tested the same config option

@tobtoht tobtoht merged commit a1b3468 into monero-project:master Feb 14, 2025
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants