Dmitry Ivankov wrote: > Currently parse-options.o pull quite a big bunch of dependencies > that are neither pulled in by svn-fe Makefile nor included in libgit.a. > > Use a temporary hack: put hardcoded EXTLIBS In other words, this is a workaround for the lack of http://thread.gmane.org/gmane.comp.version-control.git/176318/focus=176573 (Reduce parse-options.o dependencies). > this may not work in all > setups because /Makefile logic is not repeated. > > For example, one may need -lcrypto instead of -lssl or no crypto library > if BLK_SHA1 is set, also an additional -lz or -lpcre could be required. Better to pull in too many libs and let the operator remove them from the Makefile than too few and make her guess. Though of course neither should be needed. :) With the following applied on top locally, it works for me. -- >8 -- Subject: squash! svn-fe: add EXTLIBS needed for parse-options -lcrypto is needed for SHA-1 routines unless NO_OPENSSL or BLK_SHA1 is set, -lpcre is for grep if USE_LIBPCRE is set, and -lz is needed throughout. In the future, none of these should be needed, after a little rearranging to ensure that parse-options.o has no references to translation units that need to access the object db. Signed-off-by: Jonathan Nieder <jrnieder@xxxxxxxxx> --- contrib/svn-fe/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/svn-fe/Makefile b/contrib/svn-fe/Makefile index dc6dafef..14b07b5b 100644 --- a/contrib/svn-fe/Makefile +++ b/contrib/svn-fe/Makefile @@ -8,7 +8,7 @@ CFLAGS = -g -O2 -Wall LDFLAGS = ALL_CFLAGS = $(CFLAGS) ALL_LDFLAGS = $(LDFLAGS) -EXTLIBS = -lssl -lpthread +EXTLIBS = -lssl -lcrypto -lpcre -lz -lpthread GIT_LIB = ../../libgit.a VCSSVN_LIB = ../../vcs-svn/lib.a -- 1.7.6 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html