From c083cf9309a152d8d119e6ff26693b098189322e Mon Sep 17 00:00:00 2001 From: Alexey Rochev Date: Wed, 9 Nov 2022 01:33:00 +0300 Subject: [PATCH] Core: always link with CMAKE_DL_LIBS `dlopen` feature is used in qlibraryinfo.cpp without `library` feature. Change condition that adds libdl library to make sure that we can build without `library` feature. Pick-to: 6.4 Change-Id: I5051e6b2e0a8daae5f7e269ed8980df99ecaa192 Reviewed-by: Thiago Macieira --- src/corelib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt index 68444d5ee4..8af70d9ddf 100644 --- a/src/corelib/CMakeLists.txt +++ b/src/corelib/CMakeLists.txt @@ -1091,7 +1091,7 @@ qt_internal_extend_target(Core CONDITION QT_FEATURE_library AND UNIX AND NOT APP plugin/qlibrary_unix.cpp ) -qt_internal_extend_target(Core CONDITION QT_FEATURE_dlopen AND QT_FEATURE_library +qt_internal_extend_target(Core CONDITION QT_FEATURE_dlopen LIBRARIES ${CMAKE_DL_LIBS} )