On Tue, Nov 15, 2022 at 02:23:44AM +0100, Stefano Brivio wrote: > On mips64el, gcc -dumpmachine correctly reports mips64el as > architecture prefix, but for some reason seccomp.h defines > AUDIT_ARCH_MIPSEL64 and not AUDIT_ARCH_MIPS64EL. Mangle AUDIT_ARCH > accordingly. > > Build error spotted in Debian's buildd logs from Loongson build. > > Signed-off-by: Stefano Brivio Reviewed-by: David Gibson > --- > Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Makefile b/Makefile > index f0b8e1d..95b49ac 100644 > --- a/Makefile > +++ b/Makefile > @@ -25,6 +25,7 @@ AUDIT_ARCH := $(shell echo $(TARGET_ARCH) | tr [a-z] [A-Z] | sed 's/^ARM.*/ARM/' > AUDIT_ARCH := $(shell echo $(AUDIT_ARCH) | sed 's/I[456]86/I386/') > AUDIT_ARCH := $(shell echo $(AUDIT_ARCH) | sed 's/PPC64/PPC/') > AUDIT_ARCH := $(shell echo $(AUDIT_ARCH) | sed 's/PPCLE/PPC64LE/') > +AUDIT_ARCH := $(shell echo $(AUDIT_ARCH) | sed 's/MIPS64EL/MIPSEL64/') > > FLAGS := -Wall -Wextra -pedantic -std=c99 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE > FLAGS += -D_FORTIFY_SOURCE=2 -O2 -pie -fPIE -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson