Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: cmake adds "-ldl" to Windows builds, diverging from upstream https://src.fedoraproject.org/rpms/cmake/c/ad0e43afe6e48a9189135429c183fbf00bf547ba Version-Release number of selected component (if applicable): cmake-3.24.1-1.fc38 How reproducible: always Steps to Reproduce: 1. Cross-compile the Ceph Windows client in two environments: Ubuntu and RHEL 2. Note the build flags 3. Note the build results Actual results: On Ubuntu, the Ceph Windows client cross-compiles successfully. There is no reference to "-ldl" in the build logs. Expected results: On RHEL and Fedora, the Ceph Windows client fails to cross-compile because the compiler fails when searching for "-ldl" ("No such file or directory"). Additional info: In https://src.fedoraproject.org/rpms/cmake/c/ad0e43afe6e48a9189135429c183fbf00bf547ba, Sandro patched the CMAKE_DL_LIBS variable. On Ubuntu (and cmake upstream), CMAKE_DL_LIBS is blank, but on Fedora, it's now "dl". The upstream CMake maintainers rejected this patch, so it's a good idea to remove this patch from Fedora as well.
https://src.fedoraproject.org/rpms/cmake/pull-request/23 drops the patch to CMAKE_DL_LIBS, returning to upstream's behavior.
FEDORA-2022-3e0028ce85 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3e0028ce85
FEDORA-2022-3e0028ce85 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.
Thanks. For the record the exact dist-git change is https://src.fedoraproject.org/rpms/cmake/c/59c57b9caae3ceca514772cd3145c25ec8532093