Commit f5f9fb9c authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

make install: guess LIBDIR

For x86_64, LIBDIR can be tricky to find out. Nevertheless, this
works for at least RedHat/CentOS/Fedora, SLES/openSUSE, Debian/Ubuntu
and Gentoo. So, while it can guess LIBDIR wrong, this is still
a good approximation for those installing criu from source.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarAdrian Reber <adrian@lisas.de>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 72a035d7
...@@ -16,4 +16,14 @@ SBINDIR := $(PREFIX)/sbin ...@@ -16,4 +16,14 @@ SBINDIR := $(PREFIX)/sbin
MANDIR := $(PREFIX)/share/man MANDIR := $(PREFIX)/share/man
SYSTEMDUNITDIR := $(PREFIX)/lib/systemd/system/ SYSTEMDUNITDIR := $(PREFIX)/lib/systemd/system/
LIBDIR := $(PREFIX)/lib LIBDIR := $(PREFIX)/lib
# For recent Debian/Ubuntu with multiarch support
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture \
-qDEB_HOST_MULTIARCH 2>/dev/null)
ifneq "$(DEB_HOST_MULTIARCH)" ""
LIBDIR := $(PREFIX)/lib/$(DEB_HOST_MULTIARCH)
# For most other systems
else ifeq "$(shell uname -m)" "x86_64"
LIBDIR := $(PREFIX)/lib64
endif
INCLUDEDIR := $(PREFIX)/include/criu INCLUDEDIR := $(PREFIX)/include/criu
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment