These were preserved as part of the cmake transition, but no distributor uses them and we don't need them internally, so time for them to go. Signed-off-by: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx> --- buildlib/rdma_functions.cmake | 99 ------------------------------------------- 1 file changed, 99 deletions(-) diff --git a/buildlib/rdma_functions.cmake b/buildlib/rdma_functions.cmake index ea53f382553f..8fe8828c0e84 100644 --- a/buildlib/rdma_functions.cmake +++ b/buildlib/rdma_functions.cmake @@ -151,103 +151,6 @@ function(rdma_alias_man_pages) endforeach() endfunction() -# For compatability write out a libtool .la file. This is only meaningful if -# the end user is statically linking, and only if the library has dependent -# libraries. - -# FIXME: it isn't clear how this is actually useful for provider libraries and -# libibverbs itself, the user must do some trick to get the constructor to run -# in the provider, at least how to do that should be documented someplace.. -function(rdma_make_libtool_la SHARED STATIC LIBS) - get_property(LIB TARGET ${STATIC} PROPERTY OUTPUT_NAME SET) - if (LIB) - get_target_property(LIB ${STATIC} OUTPUT_NAME) - else() - set(LIB ${STATIC}) - endif() - - set(BARE_LAFN "${CMAKE_STATIC_LIBRARY_PREFIX}${LIB}.la") - set(BARE_LIBFN "${CMAKE_STATIC_LIBRARY_PREFIX}${LIB}${CMAKE_STATIC_LIBRARY_SUFFIX}") - - get_property(SOLIB TARGET ${SHARED} PROPERTY OUTPUT_NAME SET) - if (SOLIB) - get_target_property(SOLIB ${SHARED} OUTPUT_NAME) - else() - set(SOLIB ${SHARED}) - endif() - - set(DLNAME "${CMAKE_SHARED_LIBRARY_PREFIX}${SOLIB}${CMAKE_SHARED_LIBRARY_SUFFIX}") - get_property(TMP TARGET ${SHARED} PROPERTY SOVERSION SET) - if (TMP) - get_target_property(VERSION ${SHARED} VERSION) - get_target_property(SOVERSION ${SHARED} SOVERSION) - set(NAMES "${DLNAME}.${VERSION} ${DLNAME}.${SOVERSION} ${DLNAME}") - set(DLNAME "${DLNAME}.${SOVERSION}") - else() - set(NAMES "${DLNAME}") - set(DLNAME "${CMAKE_SHARED_LIBRARY_PREFIX}${SOLIB}${CMAKE_SHARED_LIBRARY_SUFFIX}") - endif() - - if (LIBS) - list(REMOVE_DUPLICATES LIBS) - foreach(I ${LIBS}) - if (I MATCHES "^-l") - list(APPEND DEPS "${I}") - else() - list(APPEND DEPS "-l${I}") - endif() - endforeach() - string(REPLACE ";" " " DEPS "${DEPS}") - endif() - - set(LAFN "${BUILD_LIB}/${BARE_LAFN}") - file(WRITE ${LAFN} - "# ${BARE_LAFN} - a libtool library file\n" - "# Generated by cmake\n" - "#\n" - "# Please DO NOT delete this file!\n" - "# It is necessary for linking the library.\n" - "\n" - "# The name that we can dlopen(3).\n" - "dlname='${DLNAME}'\n" - "\n" - "# Names of this library.\n" - "library_names='${NAMES}'\n" - "\n" - "# The name of the static archive.\n" - "old_library='${BARE_LIBFN}'\n" - "\n" - "# Linker flags that can not go in dependency_libs.\n" - "inherited_linker_flags=''\n" - "\n" - "# Libraries that this one depends upon.\n" - "dependency_libs='${DEPS}'\n" - "\n" - "# Names of additional weak libraries provided by this library\n" - "weak_library_names=''\n" - "\n" - "# Version information for ${CMAKE_STATIC_LIBRARY_PREFIX}${LIB}.\n" - # We don't try very hard to emulate this, it isn't used for static linking anyhow - "current=${SOVERSION}\n" - "age=0\n" - "revision=0\n" - "\n" - "# Is this an already installed library?\n" - "installed=yes\n" - "\n" - "# Should we warn about portability when linking against -modules?\n" - "shouldnotlink=no\n" - "\n" - "# Files to dlopen/dlpreopen\n" - "dlopen=''\n" - "dlpreopen=''\n" - "\n" - "# Directory that this library needs to be installed in:\n" - "libdir='${CMAKE_INSTALL_FULL_LIBDIR}'\n" - ) - install(FILES ${LAFN} DESTINATION "${CMAKE_INSTALL_LIBDIR}") -endfunction() - # Finalize the setup of the static libraries by copying the meta information # from the shared and setting up the libtool .la files. function(rdma_finalize_libs) @@ -274,7 +177,5 @@ function(rdma_finalize_libs) set_target_properties(${STATIC} PROPERTIES LINK_LIBRARIES "${TMP}") list(APPEND LIBS "${TMP}") endif() - - rdma_make_libtool_la(${SHARED} ${STATIC} "${LIBS}") endforeach() endfunction() -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html