You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This raises an issue when you want to mix static linking of just some system libraries, such as the case of libm using -Wl,-Bstatic -lstdc++ -lm -Wl,-Bdynamic
The issue is that system libraries of the conan recipes that added it as a dependency are repeated in the linking command:
What is your question?
Whe are porting some custom makefiles with Conan v1 to Cmake + Conan 2.
Some recipes, such as libpng, use this approach:
This raises an issue when you want to mix static linking of just some system libraries, such as the case of
libm
using-Wl,-Bstatic -lstdc++ -lm -Wl,-Bdynamic
The issue is that system libraries of the conan recipes that added it as a dependency are repeated in the linking command:
So the executable is linked dynamically to
libm
:We need to still statically link some system libraries like
libm
because we need to support old distros that have outdated libs.I tried to hack the dependencies in CMake to remove
-lm
like this but without success:Any idea about how can we deal with this issue?
Thanks
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: