-
Notifications
You must be signed in to change notification settings - Fork 26
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
Make configure use -lc++ for clang #170
base: master
Are you sure you want to change the base?
Make configure use -lc++ for clang #170
Conversation
@jfowkes Let me try and update you soon. The title is a bit inaccurate: clang is not specific to macOS (recent releases of FreeBSD use clang as a default compiler, AFAIK), and macOS may be using gcc (no clangs on macOS prior to 10.6, and gcc can be used on any modern macOS, just not being a default). |
6ce2ee7
to
b63b292
Compare
@jfowkes Something does not work still. The build is fine with
|
The logs: |
We should also modify the Meson build system. |
Apologies, it should test |
@amontoison can Meson not autodetect the C++ runtime? See the discussion in #165. Otherwise I guess we'll have to go with your suggestion as a best effort attempt. |
It can if we use the C++ compiler as linker but we prefer to use the Fortran compiler for linking. |
@barracuda156 this is the fix for autotools, please test and we can merge it. |
@jfowkes I will try, thank you. @amontoison By the way, it may be worth offering a configure option to choose the desired C++ runtime (and have reasonable defaults, if it is not passed explicitly). Since, for example, it is certainly possible to use |
Resolves #165
@barracuda156 please test.