Skip to content

Pass -pthread to the linker - #148

Merged
dra27 merged 2 commits into
ocaml:masterfrom
toots:pthread
Dec 16, 2024
Merged

dra27 merged 2 commits into
ocaml:masterfrom
toots:pthread

Conversation

@toots

@toots toots commented Nov 30, 2024 •

Copy link
Copy Markdown
Contributor

The -pthread option keeps surfacing through the different compilation configurations I see when cross-compiling.

This PR makes it so the option is accepted and passed down to the linker.

@dra27

dra27 commented Dec 13, 2024

Copy link
Copy Markdown
Member

cf. #142 - I'm not (yet) sure quietly dropping this is the "right" thing to do. Would it be better to be recognising it and passing it on instead, like the handling for -Wl,?

@toots

toots commented Dec 13, 2024

Copy link
Copy Markdown
Contributor Author

I think passing it down to the linker is always better as it will mimick what the original call would expect. I ignored it because I believe it is ignored by the linker but it is always safer to not make this assumption and pass it down.

@toots toots changed the title Ignore -pthread. Pass -pthread to the linker Dec 15, 2024
@toots

toots commented Dec 15, 2024

Copy link
Copy Markdown
Contributor Author

@dra27 I believe the changes should be passing the option down to the linker now.

@dra27 dra27 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@dra27 dra27 linked an issue Dec 16, 2024 that may be closed by this pull request
@dra27
dra27 merged commit db30b28 into ocaml:master Dec 16, 2024
@toots
toots deleted the pthread branch December 16, 2024 10:18
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.

doesn't recognize -pthread option

2 participants