-
-
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.
build: use libwhich to improve installation reliability
This removes the last remaining dependence on `ldconfig -p` (#22828) as well as DYLD_FALLBACK_LIBRARY_PATH (#24789). fix #6742
- Loading branch information
Showing
8 changed files
with
180 additions
and
52 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
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
1 change: 1 addition & 0 deletions
1
deps/checksums/libwhich-e181166c908e8d9a82d31c50c79eefa56968a7fb.tar.gz/md5
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
4c4838b6ed82cfc0201be97f0fccc0d4 |
1 change: 1 addition & 0 deletions
1
deps/checksums/libwhich-e181166c908e8d9a82d31c50c79eefa56968a7fb.tar.gz/sha512
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
782570c64e15eb893a4cbc4a641f39b481570452af0690d32acd34760d9b89db4fa6a7ef08492435d76c156627d04f662e74bf834fac585c84d26c236a6f9939 |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## LIBWHICH ## | ||
LIBWHICH_GIT_URL := git://github.com/vtjnash/libwhich.git | ||
LIBWHICH_TAR_URL = https://api.github.com/repos/vtjnash/libwhich/tarball/$1 | ||
$(eval $(call git-external,libwhich,LIBWHICH,,,$(BUILDDIR))) | ||
|
||
LIBWHICH_OBJ_LIB := $(build_depsbindir)/libwhich | ||
|
||
$(BUILDDIR)/$(LIBWHICH_SRC_DIR)/build-compiled: $(BUILDDIR)/$(LIBWHICH_SRC_DIR)/source-extracted | ||
$(MAKE) -C $(dir $<) libwhich | ||
echo 1 > $@ | ||
|
||
$(BUILDDIR)/$(LIBWHICH_SRC_DIR)/build-checked: $(BUILDDIR)/$(LIBWHICH_SRC_DIR)/build-compiled | ||
ifeq ($(OS),$(BUILD_OS)) | ||
$(MAKE) -C $(dir $@) $(LIBWHICH_MFLAGS) check | ||
endif | ||
echo 1 > $@ | ||
|
||
define LIBWHICH_INSTALL | ||
mkdir -p $2/$$(build_depsbindir) | ||
cp $1/libwhich $2/$$(build_depsbindir) | ||
endef | ||
$(eval $(call staged-install, \ | ||
libwhich,$(LIBWHICH_SRC_DIR), \ | ||
LIBWHICH_INSTALL,,,)) | ||
|
||
clean-libwhich: | ||
-rm $(BUILDDIR)/$(LIBWHICH_SRC_DIR)/build-compiled | ||
-$(MAKE) -C $(BUILDDIR)/$(LIBWHICH_SRC_DIR) clean | ||
|
||
get-libwhich: $(LIBWHICH_SRC_FILE) | ||
extract-libwhich: $(BUILDDIR)/$(LIBWHICH_SRC_DIR)/source-extracted | ||
configure-libwhich: extract-libwhich | ||
compile-libwhich: $(BUILDDIR)/$(LIBWHICH_SRC_DIR)/build-compiled | ||
fastcheck-libwhich: check-libwhich | ||
check-libwhich: $(BUILDDIR)/$(LIBWHICH_SRC_DIR)/build-checked |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
LIBWHICH_BRANCH=master | ||
LIBWHICH_SHA1=e181166c908e8d9a82d31c50c79eefa56968a7fb |