]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: link ceph-fuse against librt
authorwy7980 <wy7980@sina.com>
Mon, 11 Nov 2019 13:01:52 +0000 (08:01 -0500)
committerwy7980 <wy7980@sina.com>
Mon, 11 Nov 2019 13:08:35 +0000 (08:08 -0500)
commitaabfe40183bd384426c4a6a45847b6c70f2d57be
tree712eefbc0c5d439c47e0add583b44d09c979ec6d
parentec701823203f5dc6691c6fc8d2c4d64c9ace473f
cmake: link ceph-fuse against librt

ceph-fuse: fix error of building ceph-fuse
fix linking error of without -lrt for ceph-fuse.

error message:
```
[100%] Building CXX object src/CMakeFiles/ceph-fuse.dir/ceph_fuse.cc.o
[100%] Building CXX object src/CMakeFiles/ceph-fuse.dir/client/fuse_ll.cc.o
[100%] Linking CXX executable ../bin/ceph-fuse
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: CMakeFiles/ceph-fuse.dir/ceph_fuse.cc.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5'
//lib64/librt.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [bin/ceph-fuse] Error 1
make[2]: *** [src/CMakeFiles/ceph-fuse.dir/all] Error 2
make[1]: *** [src/CMakeFiles/ceph-fuse.dir/rule] Error 2
make: *** [ceph-fuse] Error 2
```

Signed-off-by: Yong Wang <wy7980@sina.com>
src/CMakeLists.txt