-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[icu] ICU port adds -lm in pkgconfig files for debug MSVC builds #22311
Labels
category:port-bug
The issue is with a library, which is something the port should already support
Comments
PhoebeHui
added
the
category:port-bug
The issue is with a library, which is something the port should already support
label
Jan 4, 2022
@equeim, thanks for reporting this issue, I will take a look. |
Here is log of passed test for libm in debug build:
And log of failed test for libm in release build:
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
category:port-bug
The issue is with a library, which is something the port should already support
Describe the bug
When ICU is built for Windows (MSVC) target with debug variant, its configure script adds -lm library to Libs.private property of pkgconfig files. As as I know, this library does not exist in MSVC toolchain. It is not used with dynamic linking, but static linking with pkgconfig results in linking error.
Environment
To Reproduce
Steps to reproduce the behavior:
dummy main.cpp and following CMake configuration command:
LINK : fatal error LNK1104: cannot open file 'm.lib'
Expected behavior
Statically linking ICU using pkgconfig should work.
Failure logs
build.log
Additional context
I believe that passing
ac_cv_lib_m_floor=no
to configure script in icu/portfile.cmake for MSVC toolchain fixes the issue but I don't know whether it is the correct solution.The text was updated successfully, but these errors were encountered: