From a4d4052d3a38b534bdfb7501341d11125609de79 Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 22 Dec 2024 18:21:24 +0100 Subject: chaseccomp: add CFLAGS, LDFLAGS to makefile Otherwise, it complains about missing syscalls on cross compilation. (Also, fix the warnings this revealed.) --- lib/chaseccomp/Makefile | 2 +- lib/chaseccomp/gen_defs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/chaseccomp') diff --git a/lib/chaseccomp/Makefile b/lib/chaseccomp/Makefile index 51934ace..648d4d52 100644 --- a/lib/chaseccomp/Makefile +++ b/lib/chaseccomp/Makefile @@ -6,7 +6,7 @@ chasc_defs_%.c: %.chasc common.chasc gen_defs chaseccomp.h ./gen_defs <$< >$@ chasc_defs_%: chasc_defs_%.c - $(CC) $< -o $@ + $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) %.chasc.expanded: chasc_defs_% ./$< >$@ diff --git a/lib/chaseccomp/gen_defs b/lib/chaseccomp/gen_defs index 41c3549b..5bf03d40 100755 --- a/lib/chaseccomp/gen_defs +++ b/lib/chaseccomp/gen_defs @@ -13,6 +13,8 @@ cat <si_arch); } -- cgit