Skip to content

Commit

Permalink
Symlink 7z when USE_SYSTEM_P7ZIP (JuliaLang#43005)
Browse files Browse the repository at this point in the history
* Symlink 7z

* Simplify

Co-authored-by: Elliot Saba <[email protected]>

Co-authored-by: Elliot Saba <[email protected]>
  • Loading branch information
haampie and staticfloat committed Nov 12, 2021
1 parent 8cf89d7 commit 5e2894b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e2894b

Please sign in to comment.