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>
compiler.link_executable(
objects=link_objects,
output_progname=os.path.join(tmp_dir, 'cephfs_dummy'),
- libraries=['cephfs', 'rados'],
+ libraries=['cephfs'],
output_dir=tmp_dir,
)
[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'],
)
],