]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: update makefile to enable civetweb config 3844/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 27 Feb 2015 16:14:41 +0000 (08:14 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Sat, 28 Feb 2015 16:54:51 +0000 (08:54 -0800)
Fixes: #10965
Backport: hammer, firefly

Civetweb compilation now includes conf header to enable ipv6.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/Makefile-env.am
src/rgw/Makefile.am

index 9992b41d1d3c6cb57ccc79c07178dadde293ce82..de9f342559ca4192cac31f41793e72aa3006f3a0 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
 LIBKRBD = libkrbd.la
 LIBCEPHFS = libcephfs.la
index 06e56c6928381395cd888b361dd336ca86ba41a1..3129814034179ec9901c166b588b6ad6a1f81fe0 100644 (file)
@@ -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