From: Kefu Chai Date: Wed, 15 Feb 2017 06:10:34 +0000 (+0800) Subject: pybind: cephfs: do not link against librados X-Git-Tag: v12.0.1~389^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13431%2Fhead;p=ceph.git pybind: cephfs: do not link against librados otherwise python-cephfs might fail to build with followin error: Scanning dependencies of target cython3_cephfs /usr/bin/ld: cannot find -lrados collect2: error: ld returned 1 exit status Link Error: Ceph FS library not found and apparently, cephfs *can* be built without librados. it's only dependency is libcephfs. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/cephfs/setup.py b/src/pybind/cephfs/setup.py index 37b0c18a5aa..6533f41ee53 100755 --- a/src/pybind/cephfs/setup.py +++ b/src/pybind/cephfs/setup.py @@ -106,7 +106,7 @@ def check_sanity(): compiler.link_executable( objects=link_objects, output_progname=os.path.join(tmp_dir, 'cephfs_dummy'), - libraries=['cephfs', 'rados'], + libraries=['cephfs'], output_dir=tmp_dir, ) @@ -180,7 +180,7 @@ setup( [source], include_dirs=flags['cflags']['I'], library_dirs=flags['ldflags']['L'], - libraries=['rados', 'cephfs'] + flags['ldflags']['l'], + libraries=['cephfs'] + flags['ldflags']['l'], extra_compile_args=flags['cflags']['extras'] + flags['ldflags']['extras'], ) ],