Makefile(s): Don't include the OpenSSL crypto library in the link Also, fully purge the NO_OPENSSL build variable. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/Makefile b/Makefile
index ba6f870..9aa923b 100644
--- a/Makefile
+++ b/Makefile
@@ -149,7 +149,7 @@ $(GIT_LIB): $(OBJS)
$(TEST_OBJ) $(TEST_EXE) $(TEST_RUN) $(TEST_VAL): $(GIT_LIB)
@$(MAKE) -C tests --no-print-directory \
- OS=$(OS) NO_OPENSSL=$(NO_OPENSSL) $(@F)
+ OS=$(OS) $(@F)
libgit2.pc: libgit2.pc.in
sed -e 's#@prefix@#$(prefix)#' -e 's#@libdir@#$(libdir)#' $< > $@
@@ -181,7 +181,7 @@ COV_CFLAGS = $(CFLAGS) -O0 -ftest-coverage -fprofile-arcs
cov-build:
$(MAKE) CFLAGS="$(COV_CFLAGS)" all
- $(MAKE) TEST_COVERAGE=1 NO_OPENSSL=$(NO_OPENSSL) test
+ $(MAKE) TEST_COVERAGE=1 test
cov-report:
@echo "--- untested files:" | tee untested
diff --git a/tests/Makefile b/tests/Makefile
index c059510..6a5c2bc 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -59,10 +59,6 @@ ifdef TEST_COVERAGE
EXTRA_LIBS += -O0 -lgcov
endif
-ifndef NO_OPENSSL
- EXTRA_LIBS += $(CRYPTO_LIB)
-endif
-
BASIC_CFLAGS := -I../src
ALL_CFLAGS = $(CFLAGS) $(BASIC_CFLAGS)