]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: update makefile to enable civetweb config 4145/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 27 Feb 2015 16:14:41 +0000 (08:14 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 23 Mar 2015 18:37:04 +0000 (11:37 -0700)
Fixes: #10965
Backport: hammer, firefly

Civetweb compilation now includes conf header to enable ipv6.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit caa90225bad9fe5e9c275e6189b3396b4d396e3f)

src/Makefile-env.am
src/rgw/Makefile.am

index ea7eabc7afce53bef13cd8ca856c6233feb66f7a..93d5a9a0b55d457e4bd62c04a753d6efa117f346 100644 (file)
@@ -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
index 3e5c913a5c4d3d390a0d3da9451013ac0b799b28..17dc2d117888f625344809ead2641d5a008c49a5 100644 (file)
@@ -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