-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added RPATH parameters to cmake builds, switched libssh2 and libgit2 …
…to mbedtls dependent branch
- Loading branch information
Showing
7 changed files
with
39 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,9 @@ USE_SYSTEM_ARPACK:=0 | |
USE_SYSTEM_SUITESPARSE:=0 | ||
USE_SYSTEM_LIBUV:=0 | ||
USE_SYSTEM_UTF8PROC:=0 | ||
USE_SYSTEM_HTTPPARSER:=0 | ||
USE_SYSTEM_MBEDTLS:=0 | ||
USE_SYSTEM_LIBSSH2:=0 | ||
USE_SYSTEM_LIBGIT2:=0 | ||
USE_SYSTEM_PATCHELF:=0 | ||
|
||
|
@@ -234,7 +237,7 @@ CMAKE ?= cmake | |
CMAKE_GENERATOR ?= make | ||
|
||
# Point pkg-config to only look at our libraries | ||
export PKG_CONFIG_LIBDIR = $(JULIAHOME)/usr/lib/pkgconfig | ||
export PKG_CONFIG_PATH = $(JULIAHOME)/usr/lib/pkgconfig | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tkelman
Contributor
|
||
|
||
# Figure out OS and architecture | ||
BUILD_OS := $(shell uname) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,15 @@ | ||
## libgit2 | ||
|
||
LIBGIT2_GIT_URL := git://github.com/libgit2/libgit2.git | ||
LIBGIT2_TAR_URL = https://api.github.com/repos/libgit2/libgit2/tarball/$1 | ||
LIBGIT2_GIT_URL := git://github.com/wildart/libgit2.git | ||
LIBGIT2_TAR_URL = https://api.github.com/repos/wildart/libgit2/tarball/$1 | ||
$(eval $(call git-external,libgit2,LIBGIT2,CMakeLists.txt,build/libgit2.$(SHLIB_EXT),$(SRCDIR)/srccache)) | ||
|
||
LIBGIT2_OBJ_SOURCE := $(BUILDDIR)/$(LIBGIT2_SRC_DIR)/libgit2.$(SHLIB_EXT) | ||
LIBGIT2_OBJ_TARGET := $(build_shlibdir)/libgit2.$(SHLIB_EXT) | ||
|
||
LIBGIT2_OPTS := $(CMAKE_COMMON) -DTHREADSAFE=ON -DCMAKE_PREFIX_PATH=$(build_prefix) | ||
ifeq ($(OS),WINNT) | ||
LIBGIT2_OPTS += -DWIN32=ON -DMINGW=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo | ||
ifneq ($(ARCH),x86_64) | ||
LIBGIT2_OPTS += -DCMAKE_C_FLAGS="-mincoming-stack-boundary=2" | ||
endif | ||
ifeq ($(BUILD_OS),WINNT) | ||
LIBGIT2_OPTS += -G"MSYS Makefiles" | ||
else | ||
LIBGIT2_OPTS += -DBUILD_CLAR=OFF -DDLLTOOL=`which $(CROSS_COMPILE)dlltool` | ||
LIBGIT2_OPTS += -DCMAKE_FIND_ROOT_PATH=/usr/$(XC_HOST) -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY | ||
endif | ||
else | ||
LIBGIT2_OPTS += -DCMAKE_BUILD_TYPE=Release | ||
endif | ||
LIBGIT2_OPTS := $(CMAKE_COMMON) -DUSE_OPENSSL=OFF -DTHREADSAFE=ON -DCMAKE_PREFIX_PATH=$(build_prefix) -DCMAKE_INSTALL_RPATH=$(build_prefix) -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE -DCMAKE_BUILD_TYPE=Release | ||
|
||
$(BUILDDIR)/$(LIBGIT2_SRC_DIR)/Makefile: $(SRCDIR)/srccache/$(LIBGIT2_SRC_DIR)/CMakeLists.txt | ||
-cd $(SRCDIR)/srccache/$(LIBGIT2_SRC_DIR) && patch -p1 -f < $(SRCDIR)/patches/libgit2-require-openssl.patch | ||
mkdir -p $(dir $@) | ||
cd $(dir $@) && \ | ||
$(CMAKE) $(dir $<) $(LIBGIT2_OPTS) | ||
|
@@ -38,17 +23,7 @@ ifeq ($(OS),$(BUILD_OS)) | |
endif | ||
echo 1 > $@ | ||
$(LIBGIT2_OBJ_TARGET): $(LIBGIT2_OBJ_SOURCE) | $(build_shlibdir) | ||
cp $< $@ | ||
@#$$(call make-install,$(LIBGIT2_SRC_DIR),) # currently don't need the full install | ||
ifeq ($(OS),Linux) | ||
@# If we're on linux, copy over libssl and libcrypto for libgit2 | ||
This comment has been minimized.
Sorry, something went wrong.
tkelman
Contributor
|
||
-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 | ||
$(call make-install,$(LIBGIT2_SRC_DIR),) | ||
touch -c $@ | ||
|
||
clean-libgit2: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LIBGIT2_BRANCH=v0.24.0 | ||
LIBGIT2_SHA1=785d8c48ea8725691da3c50e7dae8751523d4c30 | ||
LIBGIT2_BRANCH=mbedtls | ||
LIBGIT2_SHA1=d0bf6a7d063a695e5be262fcc13ff12092ddef1d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this change would probably reintroduce issues with iconv on mac