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 authored and vitallium committed Dec 12, 2015
1 parent d50c481 commit e48d070
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/3rdparty/icu_dependency.pri
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ win32 {
}
} else {
LIBS_PRIVATE += -licui18n -licuuc -licudata
CONFIG(static) {
LIBS_PRIVATE += -ldl
}
}

0 comments on commit e48d070

Please sign in to comment.