]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: remove direct linking to static boost libraries 12962/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 17 Jan 2017 15:39:03 +0000 (10:39 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 17 Jan 2017 15:39:03 +0000 (10:39 -0500)
The boost libraries are included in libceph-common. If linked
directly, boost::regex will abort during shutdown since it uses
a global static variable and it will be destructed twice.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd/CMakeLists.txt
src/tools/rbd_nbd/CMakeLists.txt

index fea7b7b50868b8f25f2518c5d1c3729ceab99d02..d620aedfc5a1da20112b69bff33fac5603416a56 100644 (file)
@@ -45,7 +45,6 @@ target_link_libraries(rbd librbd librados
   rbd_types
   journal
   ceph-common global
-  ${Boost_REGEX_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY}
   ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
 if(WITH_KRBD)
   target_link_libraries(rbd 
index a339b3845fea7111f4f70f570f7c7d2a184b1a00..d7ce811e9634f7b19952428a87595c90fd1c02ff 100644 (file)
@@ -1,4 +1,3 @@
 add_executable(rbd-nbd rbd-nbd.cc)
-target_link_libraries(rbd-nbd librbd librados global
-  ${Boost_REGEX_LIBRARY})
+target_link_libraries(rbd-nbd librbd librados global)
 install(TARGETS rbd-nbd DESTINATION bin)