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

macOS: Don't link lib{pthread,m} as platform libs #4580

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kinke
Copy link
Member

@kinke kinke commented Feb 13, 2024

A little test wrt. #3901. But -lm is part of llvm-config --system-libs, with both official LLVM 16 and 17. And this then leads to ld: library 'm' not found unless enforcing /usr/bin/c++ as linker driver.

@JohanEngelen
Copy link
Member

Is there something I can test for you locally?
(perhaps just the linker-gcc.cpp change?)

@kinke
Copy link
Member Author

kinke commented Feb 13, 2024

Hmm, I don't know. I just hate that our CMake build doesn't work out of the box with recent Xcode, requiring that dead-ugly -DLDC_LINK_MANUALLY=OFF -DD_COMPILER_FLAGS=-gcc=/usr/bin/c++ workaround.

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.

2 participants