]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind: cephfs: do not link against librados 13431/head
authorKefu Chai <kchai@redhat.com>
Wed, 15 Feb 2017 06:10:34 +0000 (14:10 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 15 Feb 2017 06:50:59 +0000 (14:50 +0800)
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 <kchai@redhat.com>
src/pybind/cephfs/setup.py

index 37b0c18a5aa1495c08bb41b85a4348e0955f7182..6533f41ee5332677afac293aa52f3b5f7c1f5b09 100755 (executable)
@@ -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'],
             )
         ],