|
Author: David Barbion <davidb@230ruedubac.fr>
|
|
Description: Use shared object for libevhtp
|
|
Forwarded: https://github.com/haiwen/seafile-server/pull/12
|
|
|
|
Index: seafile-server/configure.ac
|
|
===================================================================
|
|
--- seafile-server.orig/configure.ac
|
|
+++ seafile-server/configure.ac
|
|
@@ -218,6 +218,10 @@ PKG_CHECK_MODULES(LIBEVENT, [libevent >=
|
|
AC_SUBST(LIBEVENT_CFLAGS)
|
|
AC_SUBST(LIBEVENT_LIBS)
|
|
|
|
+PKG_CHECK_MODULES(LIBEVHTP, [evhtp])
|
|
+AC_SUBST(LIBEVHTP_CFLAGS)
|
|
+AC_SUBST(LIBEVHTP_LIBS)
|
|
+
|
|
PKG_CHECK_MODULES(ZLIB, [zlib >= $ZLIB_REQUIRED])
|
|
AC_SUBST(ZLIB_CFLAGS)
|
|
AC_SUBST(ZLIB_LIBS)
|
|
Index: seafile-server/server/Makefile.am
|
|
===================================================================
|
|
--- seafile-server.orig/server/Makefile.am
|
|
+++ seafile-server/server/Makefile.am
|
|
@@ -13,6 +13,7 @@ AM_CFLAGS = -DPKGDATADIR=\"$(pkgdatadir)
|
|
@GLIB2_CFLAGS@ \
|
|
@MSVC_CFLAGS@ \
|
|
@LIBARCHIVE_CFLAGS@ \
|
|
+ @LIBEVHTP_CFLAGS@ \
|
|
-Wall
|
|
|
|
bin_PROGRAMS = seaf-server
|
|
@@ -114,7 +115,7 @@ seaf_server_SOURCES = \
|
|
|
|
seaf_server_LDADD = @CCNET_LIBS@ \
|
|
$(top_builddir)/lib/libseafile_common.la \
|
|
- @GLIB2_LIBS@ @GOBJECT_LIBS@ @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ -lsqlite3 @LIBEVENT_LIBS@ -levhtp \
|
|
+ -lonig @GLIB2_LIBS@ @GOBJECT_LIBS@ @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ -lsqlite3 @LIBEVENT_LIBS@ @LIBEVHTP_LIBS@ \
|
|
$(top_builddir)/common/cdc/libcdc.la \
|
|
$(top_builddir)/common/db-wrapper/libdbwrapper.la \
|
|
@SEARPC_LIBS@ @JANSSON_LIBS@ ${LIB_WS32} @ZLIB_LIBS@ \
|