ldc icon indicating copy to clipboard operation
ldc copied to clipboard

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

Open kinke opened this issue 1 year ago • 2 comments

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.

kinke avatar Feb 13 '24 00:02 kinke

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

JohanEngelen avatar Feb 13 '24 13:02 JohanEngelen

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.

kinke avatar Feb 13 '24 15:02 kinke