Commit d550e201 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

build: criu -- Make sure the required libs are installed

Otherwise our feature testing engine will simply fail
due to lack of libs we're binding with.
Reported-by: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Tested-by: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 38eacf5e
......@@ -56,7 +56,19 @@ ccflags-y += -I/usr/include/libnl3
export ccflags-y
LIBS := -lrt -lpthread -lprotobuf-c -ldl -lnl-3
REQ-LIBS-NAMES := libpthread libprotobuf-c libnl-3
#
# Make sure all required libs are installed
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(shell sh -c \
'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \
echo "int main(int argc, char *argv[]) { return 0; }" | \
"$(CC)" -x c - $(LIBS) -o "$$TMP" > /dev/null 2>&1 && echo y; \
rm -f "$$TMP"'),y)
$(error "Make sure '$(REQ-LIBS-NAMES)' libraries are installed")
endif
endif
ifeq ($(GMON),1)
CFLAGS += -pg
GMONLDOPT := -pg
......
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