[PATCH] build: undefine "mips" to prevent build problems for MIPS targets
authorPaul Moore <paul@paul-moore.com>
Sun, 2 Aug 2020 13:57:39 +0000 (09:57 -0400)
committerFelix Geyer <fgeyer@debian.org>
Sun, 8 Nov 2020 18:59:21 +0000 (18:59 +0000)
commit79b66bf6c67f82fd12c893c4c146473821db2f93
treeefdc89520977d3c18594cb11b5cfb840d86b0d7e
parent572014c8befe7e5607b2582dde1075b026bcb816
[PATCH] build: undefine "mips" to prevent build problems for MIPS targets

It turns out that the MIPS GCC compiler defines a "mips" cpp macro
which was resulting in build failures on MIPS so we need to
undefine the "mips" macro during build.  As this should be safe
to do in all architectures, just add it to the compiler flags by
default.

This was reported in the following GH issue:
* https://github.com/seccomp/libseccomp/issues/274

Reported-by: Rongwei Zhang <pudh4418@gmail.com>
Suggested-by: Rongwei Zhang <pudh4418@gmail.com>
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
(imported from commit 5cd9059618a0810ee47c21e6b44c5a876b75e23d)

Gbp-Pq: Name build_undefine_mips_to_prevent_build_problems.patch
configure.ac
src/Makefile.am