From e48d070f8bfab50539a0655350d904496eee8abe Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Thu, 10 Dec 2015 08:17:58 -0500 Subject: [PATCH] Explicitly link with -ldl when testing ICU in a static build. On Unix, ICU has a dependency on libdl. When ICU is used as a shared library, this is automatically handled by the linker, but when it is used as a static library, the link command must include -ldl explicitly. --- src/3rdparty/icu_dependency.pri | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/3rdparty/icu_dependency.pri b/src/3rdparty/icu_dependency.pri index 6318631f6e0..ccc92dc1dd1 100644 --- a/src/3rdparty/icu_dependency.pri +++ b/src/3rdparty/icu_dependency.pri @@ -10,4 +10,7 @@ win32 { } } else { LIBS_PRIVATE += -licui18n -licuuc -licudata + CONFIG(static) { + LIBS_PRIVATE += -ldl + } }