-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
C++ library not found unless linker is changed #3958
Comments
Some relevant log:
|
IMO this is bug in libgsl and not in meson. |
but even with tat, meson should still find a library. |
I had problems with |
This is a known bug, will be fixed in the stable release. |
Duplicate of #3881 |
Problem
Some libraries are not found when
compiler.find_library("lib")
is used unless linker is changed. A clear example isgsl
library (another one isdeal_II
). When you set linker toCXXFLAGS='-fuse-ld=gold'
orCXX=clang++ CXXFLAGS='-fuse-ld=lld'
, meson finds these libraries without problem.Configuration example
All libraries are found using this configuration example except 'gsl'. This library is found when linker is changed to
ld.gold
orld.lld
withclang++
.Meson version
This bug is present in version
0.47.0
and above. I've done agit bisect
and the commit that apparently introduced this bug is: af546b5The text was updated successfully, but these errors were encountered: