From: Sage Weil Date: Thu, 29 Oct 2015 05:06:36 +0000 (-0400) Subject: rgw: link against system openssl (instead of dlopen at runtime) X-Git-Tag: v10.0.1~110^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=173bfd03c4a454032c412362135579b52027922f;p=ceph.git rgw: link against system openssl (instead of dlopen at runtime) Signed-off-by: Sage Weil --- diff --git a/ceph.spec.in b/ceph.spec.in index b93f42df2e7b..0c4d359dfa8f 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -117,6 +117,7 @@ BuildRequires: libblkid-devel >= 2.17 BuildRequires: libudev-devel BuildRequires: libtool BuildRequires: make +BuildRequires: openssl-devel BuildRequires: parted BuildRequires: perl BuildRequires: pkgconfig diff --git a/debian/control b/debian/control index 49659521d77d..8da547a09cca 100644 --- a/debian/control +++ b/debian/control @@ -40,6 +40,7 @@ Build-Depends: autoconf, libleveldb-dev, libnss3-dev, libsnappy-dev, + libssl-dev, liblttng-ust-dev, libtool, libudev-dev, diff --git a/src/Makefile-env.am b/src/Makefile-env.am index 1d481da96f77..f2256e4f2a19 100644 --- a/src/Makefile-env.am +++ b/src/Makefile-env.am @@ -244,6 +244,7 @@ CEPH_GLOBAL = $(LIBGLOBAL) $(LIBCOMMON) $(PTHREAD_LIBS) -lm $(CRYPTO_LIBS) $(EXT LIBCOMMON_DEPS = LIBRADOS_DEPS = LIBRGW_DEPS = +LIBCIVETWEB_DEPS = # This is used by the dencoder test DENCODER_SOURCES = diff --git a/src/rgw/Makefile.am b/src/rgw/Makefile.am index 3a30156c2980..639cb914c0f3 100644 --- a/src/rgw/Makefile.am +++ b/src/rgw/Makefile.am @@ -75,7 +75,8 @@ libcivetweb_la_SOURCES = \ civetweb/src/civetweb.c libcivetweb_la_CXXFLAGS = ${CIVETWEB_INCLUDE} -Woverloaded-virtual ${AM_CXXFLAGS} -libcivetweb_la_CFLAGS = -I$(srcdir)/civetweb/include ${CIVETWEB_INCLUDE} +libcivetweb_la_CFLAGS = -I$(srcdir)/civetweb/include ${CIVETWEB_INCLUDE} -DNO_SSL_DL +LIBCIVETWEB_DEPS += -lssl noinst_LTLIBRARIES += libcivetweb.la @@ -99,7 +100,7 @@ radosgw_SOURCES = \ rgw/rgw_loadgen.cc \ rgw/rgw_main.cc radosgw_CFLAGS = -I$(srcdir)/civetweb/include -radosgw_LDADD = $(LIBRGW) $(LIBCIVETWEB) $(LIBRGW_DEPS) $(RESOLV_LIBS) $(CEPH_GLOBAL) +radosgw_LDADD = $(LIBRGW) $(LIBCIVETWEB) $(LIBCIVETWEB_DEPS) $(LIBRGW_DEPS) $(RESOLV_LIBS) $(CEPH_GLOBAL) bin_PROGRAMS += radosgw radosgw_admin_SOURCES = rgw/rgw_admin.cc rgw/rgw_orphan.cc