mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
Merge pull request #7284 from ceph/wip-make-remove-libedit
makefile: remove libedit from libclient.la Reviewed-by: Casey Bodley <cbodley@redhat.com> Reviewed-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
commit
acd4314cf3
@ -197,8 +197,6 @@ find_package(libuuid REQUIRED)
|
|||||||
|
|
||||||
find_package(libcurl REQUIRED)
|
find_package(libcurl REQUIRED)
|
||||||
|
|
||||||
find_package(libedit REQUIRED)
|
|
||||||
|
|
||||||
option(USE_CRYPTOPP "Cryptopp is ON" ON)
|
option(USE_CRYPTOPP "Cryptopp is ON" ON)
|
||||||
find_package(cryptopp)
|
find_package(cryptopp)
|
||||||
if(CRYPTOPP_FOUND)
|
if(CRYPTOPP_FOUND)
|
||||||
|
@ -117,7 +117,6 @@ BuildRequires: hdparm
|
|||||||
BuildRequires: leveldb-devel > 1.2
|
BuildRequires: leveldb-devel > 1.2
|
||||||
BuildRequires: libaio-devel
|
BuildRequires: libaio-devel
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: libedit-devel
|
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: libblkid-devel >= 2.17
|
BuildRequires: libblkid-devel >= 2.17
|
||||||
BuildRequires: libudev-devel
|
BuildRequires: libudev-devel
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
# Try to find libedit
|
|
||||||
# Once done, this will define
|
|
||||||
#
|
|
||||||
# LIBEDIT_FOUND - system has Profiler
|
|
||||||
# LIBEDIT_INCLUDE_DIR - the Profiler include directories
|
|
||||||
# LIBEDIT_LIBRARIES - link these to use Profiler
|
|
||||||
|
|
||||||
if(LIBEDIT_INCLUDE_DIR AND LIBEDIT_LIBRARIES)
|
|
||||||
set(LIBEDIT_FIND_QUIETLY TRUE)
|
|
||||||
endif(LIBEDIT_INCLUDE_DIR AND LIBEDIT_LIBRARIES)
|
|
||||||
|
|
||||||
INCLUDE(CheckCXXSymbolExists)
|
|
||||||
|
|
||||||
# include dir
|
|
||||||
|
|
||||||
find_path(LIBEDIT_INCLUDE_DIR histedit.h NO_DEFAULT_PATH PATHS
|
|
||||||
/usr/include
|
|
||||||
/opt/local/include
|
|
||||||
/usr/local/include
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# finally the library itself
|
|
||||||
find_library(LIBLIBEDIT NAMES edit)
|
|
||||||
set(LIBEDIT_LIBRARIES ${LIBLIBEDIT})
|
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set LIBEDIT_FOUND to TRUE if
|
|
||||||
# all listed variables are TRUE
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
find_package_handle_standard_args(libedit DEFAULT_MSG LIBEDIT_LIBRARIES LIBEDIT_INCLUDE_DIR)
|
|
||||||
|
|
||||||
mark_as_advanced(LIBEDIT_LIBRARIES LIBEDIT_INCLUDE_DIR)
|
|
10
configure.ac
10
configure.ac
@ -720,16 +720,6 @@ if test "x$enable_xio" = x"yes"; then
|
|||||||
AC_SUBST(XIO_LIBS)
|
AC_SUBST(XIO_LIBS)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
|
||||||
# FreeBSD has it in base.
|
|
||||||
#
|
|
||||||
if test x"$freebsd" != x"yes" -a x"$with_radosgw" = x"yes"; then
|
|
||||||
PKG_CHECK_MODULES([LIBEDIT], [libedit >= 2.11],
|
|
||||||
[], AC_MSG_FAILURE([No usable version of libedit found.]))
|
|
||||||
else
|
|
||||||
LIBEDIT_LIBS="-ledit"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#libatomic-ops? You want it!
|
#libatomic-ops? You want it!
|
||||||
AC_ARG_WITH([libatomic-ops],
|
AC_ARG_WITH([libatomic-ops],
|
||||||
[AS_HELP_STRING([--without-libatomic-ops],
|
[AS_HELP_STRING([--without-libatomic-ops],
|
||||||
|
1
debian/control
vendored
1
debian/control
vendored
@ -31,7 +31,6 @@ Build-Depends: autoconf,
|
|||||||
libboost-regex-dev,
|
libboost-regex-dev,
|
||||||
libboost-random-dev,
|
libboost-random-dev,
|
||||||
libcurl4-gnutls-dev,
|
libcurl4-gnutls-dev,
|
||||||
libedit-dev,
|
|
||||||
libexpat1-dev,
|
libexpat1-dev,
|
||||||
libfcgi-dev,
|
libfcgi-dev,
|
||||||
libfuse-dev,
|
libfuse-dev,
|
||||||
|
@ -144,8 +144,6 @@ endif()
|
|||||||
set(heap_profiler_files ${TCMALLOC_srcs})
|
set(heap_profiler_files ${TCMALLOC_srcs})
|
||||||
add_library(heap_profiler_objs OBJECT ${heap_profiler_files})
|
add_library(heap_profiler_objs OBJECT ${heap_profiler_files})
|
||||||
|
|
||||||
set(LIBEDIT_LIBS edit)
|
|
||||||
|
|
||||||
# Common infrastructure
|
# Common infrastructure
|
||||||
configure_file(
|
configure_file(
|
||||||
${CMAKE_SOURCE_DIR}/src/ceph_ver.h.in.cmake
|
${CMAKE_SOURCE_DIR}/src/ceph_ver.h.in.cmake
|
||||||
@ -813,10 +811,6 @@ add_executable(ceph-kvstore-tool tools/ceph_kvstore_tool.cc)
|
|||||||
target_link_libraries(ceph-kvstore-tool os global ${UNITTEST_CXX_FLAGS})
|
target_link_libraries(ceph-kvstore-tool os global ${UNITTEST_CXX_FLAGS})
|
||||||
install(TARGETS ceph-kvstore-tool DESTINATION bin)
|
install(TARGETS ceph-kvstore-tool DESTINATION bin)
|
||||||
|
|
||||||
#set(ceph_srcs tools/ceph.cc tools/common.cc)
|
|
||||||
#add_executable(ceph ${ceph_srcs})
|
|
||||||
#target_link_libraries(ceph global ${LIBEDIT_LIBS})
|
|
||||||
|
|
||||||
set(ceph_conf_srcs
|
set(ceph_conf_srcs
|
||||||
tools/ceph_conf.cc)
|
tools/ceph_conf.cc)
|
||||||
add_executable(ceph-conf ${ceph_conf_srcs})
|
add_executable(ceph-conf ${ceph_conf_srcs})
|
||||||
@ -901,7 +895,7 @@ if(WITH_LIBCEPHFS)
|
|||||||
client/Trace.cc
|
client/Trace.cc
|
||||||
client/posix_acl.cc)
|
client/posix_acl.cc)
|
||||||
add_library(client ${libclient_srcs})
|
add_library(client ${libclient_srcs})
|
||||||
target_link_libraries(client osdc mds ${LIBEDIT_LIBS})
|
target_link_libraries(client osdc mds)
|
||||||
set(libcephfs_srcs libcephfs.cc)
|
set(libcephfs_srcs libcephfs.cc)
|
||||||
add_library(cephfs ${CEPH_SHARED} ${libcephfs_srcs}
|
add_library(cephfs ${CEPH_SHARED} ${libcephfs_srcs}
|
||||||
$<TARGET_OBJECTS:cls_references_objs>
|
$<TARGET_OBJECTS:cls_references_objs>
|
||||||
|
@ -8,7 +8,7 @@ libclient_la_SOURCES = \
|
|||||||
client/MetaSession.cc \
|
client/MetaSession.cc \
|
||||||
client/Trace.cc \
|
client/Trace.cc \
|
||||||
client/posix_acl.cc
|
client/posix_acl.cc
|
||||||
libclient_la_LIBADD = $(LIBOSDC) $(LIBEDIT_LIBS)
|
libclient_la_LIBADD = $(LIBOSDC)
|
||||||
noinst_LTLIBRARIES += libclient.la
|
noinst_LTLIBRARIES += libclient.la
|
||||||
|
|
||||||
noinst_HEADERS += \
|
noinst_HEADERS += \
|
||||||
|
Loading…
Reference in New Issue
Block a user