diff --git a/base/Makefile b/base/Makefile index c7a2c7a241e83..82954b85c348e 100644 --- a/base/Makefile +++ b/base/Makefile @@ -185,6 +185,19 @@ SYMLINK_SYSTEM_LIBRARIES += symlink_$2 endif endef +# libexec executables +symlink_p7zip: $(build_bindir)/7z$(EXE) + +ifneq ($(USE_SYSTEM_P7ZIP),0) +SYMLINK_SYSTEM_LIBRARIES += symlink_p7zip +7Z_PATH := $(shell which 7z$(EXE)) +endif + +$(build_bindir)/7z$(EXE): + [ -e "$(7Z_PATH)" ] && \ + ([ ! -e "$@" ] || rm "$@") && \ + ln -svf "$(7Z_PATH)" "$@" + # the following excludes: libuv.a, libutf8proc.a ifneq ($(USE_SYSTEM_LIBM),0)