diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-03-28 23:17:13 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-03-28 23:17:13 +0200 |
commit | 3ce7d7a28c057bbe72f55d221657fd0d6d54f246 (patch) | |
tree | c214171c450df0ffa336ad4b3b2d32ec44847d38 /cmake/Modules | |
parent | 9da13d4ff8152d58bb3debe03ab241ec23ac00b4 (diff) | |
download | libssh-3ce7d7a28c057bbe72f55d221657fd0d6d54f246.tar.gz libssh-3ce7d7a28c057bbe72f55d221657fd0d6d54f246.tar.xz libssh-3ce7d7a28c057bbe72f55d221657fd0d6d54f246.zip |
Workaround for check linkage on ubuntu amd64
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/FindCheck.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/Modules/FindCheck.cmake b/cmake/Modules/FindCheck.cmake index 35d4431..42ca746 100644 --- a/cmake/Modules/FindCheck.cmake +++ b/cmake/Modules/FindCheck.cmake @@ -42,9 +42,12 @@ else (CHECK_LIBRARIES AND CHECK_INCLUDE_DIRS) ) mark_as_advanced(CHECK_INCLUDE_DIR) + # check_pic is a workaround for ubuntu's check bug which does not compile + # check as a shared library with -fPIC. + # see https://bugs.launchpad.net/ubuntu/+source/check/+bug/125781 find_library(CHECK_LIBRARY NAMES - check + check_pic check PATHS ${_CHECK_LIBDIR} /usr/lib |