From a7f839070541234834938960acf9c61d930c97ba Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 15 Feb 2017 14:10:34 +0800 Subject: [PATCH] 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 --- src/pybind/cephfs/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/cephfs/setup.py b/src/pybind/cephfs/setup.py index 37b0c18a5aa14..6533f41ee5332 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'], ) ], -- 2.39.5