aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-03-28 23:17:13 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-03-28 23:17:13 +0200
commit3ce7d7a28c057bbe72f55d221657fd0d6d54f246 (patch)
treec214171c450df0ffa336ad4b3b2d32ec44847d38
parent9da13d4ff8152d58bb3debe03ab241ec23ac00b4 (diff)
downloadlibssh-3ce7d7a28c057bbe72f55d221657fd0d6d54f246.tar.gz
libssh-3ce7d7a28c057bbe72f55d221657fd0d6d54f246.tar.xz
libssh-3ce7d7a28c057bbe72f55d221657fd0d6d54f246.zip
Workaround for check linkage on ubuntu amd64
-rw-r--r--cmake/Modules/FindCheck.cmake5
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