Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect shared library name of libzip on Linux systems #658

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,14 @@ endif
LINUX_DISTRO := $(shell lsb_release -i -s || true)
LINUX_DISTRO_RELEASE := $(shell lsb_release -r -s || true)
BINFMT_MISC_TROUBLE := cli win
LIBZIP_SO := $(shell ldconfig -p | grep libzip | tr -d '\t' | cut -d ' ' -f 1)
LIBZIPSHARP_CONFIG := external/LibZipSharp/libZipSharp.dll.config

prepare:: linux-prepare-$(LINUX_DISTRO) linux-prepare-$(LINUX_DISTRO)-$(LINUX_DISTRO_RELEASE)
@echo
@echo Updating LibZipSharp shared library mapping to look for $(LIBZIP_SO)
sed -e 's;target="\(libzip\.so.*\)"\(.*\);target="$(LIBZIP_SO)"\2;g' < $(LIBZIPSHARP_CONFIG) > $(LIBZIPSHARP_CONFIG).new && \
mv $(LIBZIPSHARP_CONFIG).new $(LIBZIPSHARP_CONFIG)
@BINFMT_WARN=no ; \
for m in $(BINFMT_MISC_TROUBLE); do \
if [ -f /proc/sys/fs/binfmt_misc/$$m ]; then \
Expand Down