From: Yehuda Sadeh Date: Fri, 27 Feb 2015 16:14:41 +0000 (-0800) Subject: rgw: update makefile to enable civetweb config X-Git-Tag: v0.94~22^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4145%2Fhead;p=ceph.git rgw: update makefile to enable civetweb config Fixes: #10965 Backport: hammer, firefly Civetweb compilation now includes conf header to enable ipv6. Signed-off-by: Yehuda Sadeh (cherry picked from commit caa90225bad9fe5e9c275e6189b3396b4d396e3f) --- diff --git a/src/Makefile-env.am b/src/Makefile-env.am index ea7eabc7afce5..93d5a9a0b55d4 100644 --- a/src/Makefile-env.am +++ b/src/Makefile-env.am @@ -152,6 +152,7 @@ LIBCLIENT_FUSE = libclient_fuse.la LIBRADOS = librados.la LIBRADOSSTRIPER = libradosstriper.la LIBRGW = librgw.la +LIBCIVETWEB = libcivetweb.la LIBRBD = librbd.la LIBRBD_TYPES = librbd_types.la LIBKRBD = libkrbd.la diff --git a/src/rgw/Makefile.am b/src/rgw/Makefile.am index 3e5c913a5c4d3..17dc2d117888f 100644 --- a/src/rgw/Makefile.am +++ b/src/rgw/Makefile.am @@ -56,6 +56,18 @@ LIBRGW_DEPS += \ -lfcgi \ -ldl +CIVETWEB_INCLUDE = --include civetweb/include/civetweb_conf.h + +libcivetweb_la_SOURCES = \ + rgw/rgw_civetweb.cc \ + rgw/rgw_civetweb_log.cc \ + civetweb/src/civetweb.c + +libcivetweb_la_CXXFLAGS = ${CIVETWEB_INCLUDE} -Woverloaded-virtual ${AM_CXXFLAGS} +libcivetweb_la_CFLAGS = -Icivetweb/include ${CIVETWEB_INCLUDE} + +noinst_LTLIBRARIES += libcivetweb.la + radosgw_SOURCES = \ rgw/rgw_resolve.cc \ rgw/rgw_rest.cc \ @@ -74,12 +86,9 @@ radosgw_SOURCES = \ rgw/rgw_swift.cc \ rgw/rgw_swift_auth.cc \ rgw/rgw_loadgen.cc \ - rgw/rgw_civetweb.cc \ - rgw/rgw_civetweb_log.cc \ - civetweb/src/civetweb.c \ rgw/rgw_main.cc radosgw_CFLAGS = -I$(srcdir)/civetweb/include -radosgw_LDADD = $(LIBRGW) $(LIBRGW_DEPS) $(RESOLV_LIBS) $(CEPH_GLOBAL) +radosgw_LDADD = $(LIBRGW) $(LIBCIVETWEB) $(LIBRGW_DEPS) $(RESOLV_LIBS) $(CEPH_GLOBAL) bin_PROGRAMS += radosgw radosgw_admin_SOURCES = rgw/rgw_admin.cc @@ -162,6 +171,7 @@ noinst_HEADERS += \ rgw/rgw_civetweb_log.h \ civetweb/civetweb.h \ civetweb/include/civetweb.h \ + civetweb/include/civetweb_conf.h \ civetweb/src/md5.h endif # WITH_RADOSGW