From 997a0b846b06a8472cb9b2585947bb884a9dd429 Mon Sep 17 00:00:00 2001 From: Seungha Son Date: Wed, 30 Dec 2020 13:35:03 +0900 Subject: Remove static library Change-Id: Ifb43d363f8d44f775f875e52063b4bf2041d08b9 Signed-off-by: Seungha Son --- CMakeLists.txt | 16 ---------------- packaging/ttrace.spec | 1 - 2 files changed, 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ee526d..d1796fb 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,22 +64,6 @@ CONFIGURE_FILE(${TTRACE}.pc.in ${TTRACE}.pc @ONLY) INSTALL(TARGETS ${TTRACE} DESTINATION ${LIBDIR} COMPONENT RuntimeLibraries) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${TTRACE}.pc DESTINATION ${LIBDIR}/pkgconfig) -# ------------------------------ -# Build ttrace Library (Static) -# ------------------------------ -SET(TTRACE_STATIC "ttrace-static") - -ADD_LIBRARY(${TTRACE_STATIC} STATIC ${SRC}) -SET_TARGET_PROPERTIES(${TTRACE_STATIC} PROPERTIES COMPILE_FLAGS "${EXTRA_CFLAGS_common} -fpic") -SET_TARGET_PROPERTIES(${TTRACE_STATIC} PROPERTIES OUTPUT_NAME ttrace) - -CONFIGURE_FILE(${TTRACE_STATIC}.pc.in ${TTRACE_STATIC}.pc @ONLY) - -INSTALL(TARGETS ${TTRACE_STATIC} DESTINATION ${LIBDIR}) -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${TTRACE_STATIC}.pc DESTINATION ${LIBDIR}/pkgconfig) -TARGET_LINK_LIBRARIES(${TTRACE_STATIC} ${pkg_ttrace_LDFLAGS} "-ldl") - -# Post Process INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include FILES_MATCHING diff --git a/packaging/ttrace.spec b/packaging/ttrace.spec index a698f93..81008e6 100644 --- a/packaging/ttrace.spec +++ b/packaging/ttrace.spec @@ -143,7 +143,6 @@ install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj %defattr(-,root,root,-) %{_includedir}/*.h %{_libdir}/libttrace.so -%{_libdir}/libttrace.a %{_libdir}/pkgconfig/*.pc %if 0%{?gcov:1} -- cgit v1.2.3