mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-04 08:15:37 +00:00
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: Laurent Dufour <ldufour@linux.vnet.ibm.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Tested-by: Laurent Dufour <ldufour@linux.vnet.ibm.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
38eacf5edb
commit
d550e2017d
@@ -56,7 +56,19 @@ ccflags-y += -I/usr/include/libnl3
|
|||||||
export ccflags-y
|
export ccflags-y
|
||||||
|
|
||||||
LIBS := -lrt -lpthread -lprotobuf-c -ldl -lnl-3
|
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)
|
ifeq ($(GMON),1)
|
||||||
CFLAGS += -pg
|
CFLAGS += -pg
|
||||||
GMONLDOPT := -pg
|
GMONLDOPT := -pg
|
||||||
|
Reference in New Issue
Block a user