Files
MSYS2-packages/subversion/02-fix-linking.patch
2015-09-14 14:39:28 +03:00

66 lines
1.8 KiB
Diff

Fix linking for Cygwin.
From: David Rothenberger <daveroth@acm.org>
---
build.conf | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/build.conf b/build.conf
index 4f020da..a22bdaf 100644
--- a/build.conf
+++ b/build.conf
@@ -403,7 +403,7 @@ type = apache-mod
path = subversion/mod_dav_svn
sources = *.c reports/*.c posts/*.c
libs = libsvn_repos libsvn_fs libsvn_delta libsvn_subr libhttpd mod_dav
-nonlibs = apr aprutil
+ httpd apr aprutil
install = apache-mod
[mod_authz_svn]
@@ -411,8 +411,9 @@ description = Subversion path-based authorization module for Apache
when = INSTALL_APACHE_MODS
type = apache-mod
path = subversion/mod_authz_svn
-nonlibs = mod_dav_svn apr aprutil
libs = libsvn_repos libsvn_subr libhttpd
+ httpd aprutil apr
+ mod_dav_svn
install = apache-mod
[mod_dontdothat]
@@ -420,8 +421,9 @@ description = Apache Httpd module to block certain kinds of Apache Subversion re
when = INSTALL_APACHE_MODS
type = apache-mod
path = tools/server-side/mod_dontdothat
-nonlibs = mod_dav_svn apr aprutil
libs = libsvn_subr xml libhttpd
+ httpd aprutil apr
+ mod_dav_svn
install = tools
# The Subversion FSFS repository manipulation tool
@@ -561,7 +563,7 @@ lang = python
path = subversion/bindings/swig/python/libsvn_swig_py
libs = libsvn_client libsvn_wc libsvn_ra libsvn_delta libsvn_subr
apriconv apr python swig
-link-cmd = $(LINK)
+link-cmd = $(LINK) $(SWIG_PY_LIBS)
install = swig-py-lib
# need special build rule to include -DSWIGPYTHON
compile-cmd = $(COMPILE_SWIG_PY)
@@ -1456,6 +1458,11 @@ external-lib = $(SVN_SWIG_LIBS)
type = lib
external-lib = $(SVN_PERL_LIBS)
+[httpd]
+type = lib
+external-lib = -lhttpd
+libs = aprutil apr
+
[python]
type = lib
external-lib = $(SVN_PYTHON_LIBS)