* as global-static references symbols offered by common.
* and remove DPDK_LIBRARIES from global, as it is libcommon which
is using DPDK.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
a2cad3bb1cad57cab5f0acc11310613077866a87)
add_library(global-static STATIC
$<TARGET_OBJECTS:libglobal_objs>
$<TARGET_OBJECTS:global_common_objs>)
+target_link_libraries(global-static common)
add_library(global STATIC
$<TARGET_OBJECTS:libglobal_objs>
$<TARGET_OBJECTS:global_common_objs>)
-target_link_libraries(global ceph-common ${DPDK_LIBRARIES} ${EXTRALIBS})
+target_link_libraries(global ceph-common ${EXTRALIBS})