Describe the issue
When building the monolithic shared library with MinGW, an error occurs:
ld.exe: absl/CMakeFiles/abseil_dll.dir/time/internal/cctz/src/time_zone_lookup.cc.obj: in function `absl::lts_20260107::time_internal::cctz::local_time_zone()':
absl/time/internal/cctz/src/time_zone_lookup.cc:168:(.text+0x29d): undefined reference to `absl::lts_20260107::time_internal::cctz::GetWindowsLocalTimeZone[abi:cxx11]()'
And I check the build directory, finding that time_zone_name_win.cc.obj, which contains this symbol and should be compiled, is not compiled.
Steps to reproduce the problem
- Use CMake to configure the project with
-DABSL_BUILD_MONOLITHIC_SHARED_LIBS:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON
- Build all
What version of Abseil are you using?
20260107.1
What operating system and version are you using?
Windows 11
What compiler and version are you using?
MinGW 15.2.0
What build system are you using?
CMake 4.1.1
Additional context
No response
Describe the issue
When building the monolithic shared library with MinGW, an error occurs:
And I check the build directory, finding that
time_zone_name_win.cc.obj, which contains this symbol and should be compiled, is not compiled.Steps to reproduce the problem
-DABSL_BUILD_MONOLITHIC_SHARED_LIBS:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ONWhat version of Abseil are you using?
20260107.1
What operating system and version are you using?
Windows 11
What compiler and version are you using?
MinGW 15.2.0
What build system are you using?
CMake 4.1.1
Additional context
No response