diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-12-22 18:21:24 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-12-22 18:21:24 +0100 |
| commit | a4d4052d3a38b534bdfb7501341d11125609de79 (patch) | |
| tree | 3a9fb2d26bc5908391a213f6f12a412b82a9fb72 /lib/chaseccomp | |
| parent | 1d1b7854e2397b4aef915d5a15c2796d89349a9b (diff) | |
| download | chawan-a4d4052d3a38b534bdfb7501341d11125609de79.tar.gz | |
chaseccomp: add CFLAGS, LDFLAGS to makefile
Otherwise, it complains about missing syscalls on cross compilation.
(Also, fix the warnings this revealed.)
Diffstat (limited to 'lib/chaseccomp')
| -rw-r--r-- | lib/chaseccomp/Makefile | 2 | ||||
| -rwxr-xr-x | lib/chaseccomp/gen_defs | 2 |
2 files changed, 3 insertions, 1 deletions
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 <<EOF static void determine_audit_arch(int sig, siginfo_t *info, void *ucontext) { + (void)sig; + (void)ucontext; printf("load arch\nifne %u deny\n", info->si_arch); } |