Skip to content

Commit

Permalink
Bundle libssl and libcrypto on Linux with libgit2
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jan 13, 2015
1 parent de5926f commit 3e81935
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,15 @@ endif
echo 1 > $@
$(LIBGIT2_OBJ_TARGET): $(LIBGIT2_OBJ_SOURCE) | $(build_shlibdir)
cp $< $@
ifeq ($(OS),Linux)
# If we're on linux, copy over libssl and libcrypto for libgit2
-LIBGIT_LIBS=$$(ldd "$@" | tail -n +2 | awk '{print $$(NF-1)}'); \
for LIB in libssl libcrypto; do \
LIB_PATH=$$(echo "$$LIBGIT_LIBS" | grep "$$LIB"); \
echo "LIB_PATH for $$LIB: $$LIB_PATH"; \
[ ! -z "$$LIB_PATH" ] && cp -v "$$LIB_PATH" $(build_shlibdir); \
done
endif

clean-libgit2:
-rm -rf libgit2-$(LIBGIT2_VER)/build/
Expand Down

0 comments on commit 3e81935

Please sign in to comment.