1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-03 13:31:11 +03:00

Workaround for check linkage on ubuntu amd64

This commit is contained in:
Aris Adamantiadis
2010-03-28 23:17:13 +02:00
parent 9da13d4ff8
commit 3ce7d7a28c

View File

@@ -42,9 +42,12 @@ else (CHECK_LIBRARIES AND CHECK_INCLUDE_DIRS)
) )
mark_as_advanced(CHECK_INCLUDE_DIR) 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 find_library(CHECK_LIBRARY
NAMES NAMES
check check_pic check
PATHS PATHS
${_CHECK_LIBDIR} ${_CHECK_LIBDIR}
/usr/lib /usr/lib