From: Yehuda Sadeh Date: Fri, 27 Feb 2015 16:14:41 +0000 (-0800) Subject: rgw: update makefile to enable civetweb config X-Git-Tag: v9.0.0~228^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3844%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 --- diff --git a/src/Makefile-env.am b/src/Makefile-env.am index 9992b41d1d3c6..de9f342559ca4 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 LIBKRBD = libkrbd.la LIBCEPHFS = libcephfs.la diff --git a/src/rgw/Makefile.am b/src/rgw/Makefile.am index 06e56c6928381..3129814034179 100644 --- a/src/rgw/Makefile.am +++ b/src/rgw/Makefile.am @@ -53,6 +53,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 \ @@ -71,12 +83,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,4 +171,5 @@ noinst_HEADERS += \ rgw/rgw_civetweb_log.h \ civetweb/civetweb.h \ civetweb/include/civetweb.h \ + civetweb/include/civetweb_conf.h \ civetweb/src/md5.h