Upstream CMake sets CMAKE_DL_LIBS to an empty value on MINGW, but the
Fedora and RHEL packages override this and set "dl". Re-set it back to
an empty value.
We can revert this if https://bugzilla.redhat.com/
2127529 is resolved
for CMake in Fedora and RHEL.
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
"$<$<COMPILE_LANGUAGE:CXX>:-fdiagnostics-color=${DIAGNOSTICS_COLOR}>")
endif()
+if(MINGW)
+ # Fedora and RHEL set CMAKE_DL_LIBS on MINGW, which we must un-set here.
+ # Details at https://bugzilla.redhat.com/show_bug.cgi?id=2127529
+ set(CMAKE_DL_LIBS "")
+endif()
+
set(EXTRALIBS ${CMAKE_DL_LIBS})
if(HAVE_POSIX_TIMERS)
list(APPEND EXTRALIBS ${RT_LIBRARY})