>From <ka...@redhat.com>:

ka...@redhat.com has uploaded a new change for review.

  https://review.gerrithub.io/289800

Change subject: cmake: find libhandle.so on Debian Stretch and Ubuntu Xenial
......................................................................

cmake: find libhandle.so on Debian Stretch and Ubuntu Xenial

xfslibs and xfslibs-dev on Stretch and Xenial install libhandle.so.1*
and libhandle.so in /lib instead of the more usual places, e.g.
/usr/lib/libhandle.so or /usr/lib64/libhandle.so. (Perhaps this is a bug
in Stretch's and Xenial's xfslibs packages?)

To make matters worse, libhandle.a on these distributions is installed
in /usr/lib/, with the result that cmake's check_library_exists() will
find them, but later on build will try to link with libhandle.a and fail
due to the mismatch between PIC code in the FSAL and the non-PIC code in
libhandle.a.

Thus we check first (order is important here) for the odd location, and
if found, set things up to link with it. Otherwise check the normal
location(s) and let the link find it the way it usually does.

Change-Id: I2deb24176d94bc68c9c4cca27b94cedc8bce68da
Signed-off-by: Kaleb S. KEITHLEY <kkeit...@redhat.com>
---
M src/CMakeLists.txt
M src/FSAL/FSAL_VFS/xfs/CMakeLists.txt
2 files changed, 10 insertions(+), 6 deletions(-)


  git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha 
refs/changes/00/289800/1
-- 
To view, visit https://review.gerrithub.io/289800
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2deb24176d94bc68c9c4cca27b94cedc8bce68da
Gerrit-PatchSet: 1
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Owner: ka...@redhat.com

------------------------------------------------------------------------------
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to