Fix CentOS 6 support.
CentOS 6 support was added in and inadvertently reverted in
leading to builds failing due to undefined reference to "clock_gettime".
To re-add support for building on CentOS 6 and keep binary size down,
only add librt to the list of target_link_libraries to allow
"clock_gettime" to be resolved.
@@ -8,6 +8,6 @@ include_directories(${CMAKE_SOURCE_DIR}/src/cc/libbpf/include/uapi)
option(INSTALL_INTROSPECTION "Install BPF introspection tools" ON)
add_executable(bps bps.c)
-target_link_libraries(bps bpf-static elf z)
+target_link_libraries(bps bpf-static elf rt z)
install (TARGETS bps DESTINATION share/bcc/introspection)
