diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-11-13 01:45:17 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-11-16 15:10:35 +0100 |
commit | fb8376f4b5c5abbf6819718ed33ac306430eb467 (patch) | |
tree | 258b3942c0abbd2f9deb22e03ef17f2be898c832 /Makefile | |
parent | b501a8f274682dfcfc3db671f5ce4c114ab02f05 (diff) | |
download | passt-fb8376f4b5c5abbf6819718ed33ac306430eb467.tar passt-fb8376f4b5c5abbf6819718ed33ac306430eb467.tar.gz passt-fb8376f4b5c5abbf6819718ed33ac306430eb467.tar.bz2 passt-fb8376f4b5c5abbf6819718ed33ac306430eb467.tar.lz passt-fb8376f4b5c5abbf6819718ed33ac306430eb467.tar.xz passt-fb8376f4b5c5abbf6819718ed33ac306430eb467.tar.zst passt-fb8376f4b5c5abbf6819718ed33ac306430eb467.zip |
Makefile: It's AUDIT_ARCH_MIPSEL64, not AUDIT_ARCH_MIPS64EL
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 <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |