Skip to content

Commit

Permalink
Explicitly link with -ldl when testing ICU in a static build.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zackw committed Dec 12, 2015
1 parent c649e97 commit 5765f14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tools/qmake/config.tests/icu/icu.pro
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ win32 {
PKGCONFIG += icu-i18n
} else {
LIBS += -licui18n -licuuc -licudata
CONFIG(static) {
LIBS += -ldl
}
}

load(qt_build_config)

0 comments on commit 5765f14

Please sign in to comment.