mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-04 15:53:44 +00:00
Install libcriu into a local staging directory (.install/) using
'make install-lib' and reference only that directory during build
and test:
CFLAGS := -I$(INSTALL_DIR)/include/criu
LDFLAGS := -L$(INSTALL_DIR)/lib -lcriu
LD_LIBRARY_PATH=${MAIN_DIR}/.install/lib
Nothing from the non-test part of the repo is used at compile,
link, or run time.
The compile rule is also corrected to use $< instead of $^
for gcc -c.
Fixes: #2927
Signed-off-by: Ahmed Elaidy <elaidya225@gmail.com>
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| lib.c | ||
| lib.h | ||
| Makefile | ||
| run.sh | ||
| test_check.c | ||
| test_errno.c | ||
| test_feature_check.c | ||
| test_iters.c | ||
| test_join_ns.c | ||
| test_notify.c | ||
| test_pre_dump.c | ||
| test_rpc_config.c | ||
| test_self.c | ||
| test_sub.c | ||