selftests/nolibc: allow building i386 with multiarch compiler
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 17 Sep 2023 15:36:16 +0000 (17:36 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Thu, 12 Oct 2023 19:14:09 +0000 (21:14 +0200)
commit9531548675300e313b4e852d90095449c2368fbe
tree6b65c5aad72c474514cd0e32d42245c6126a7717
parent45839d09910e94254e35b08d1a71cc1206767217
selftests/nolibc: allow building i386 with multiarch compiler

When building with a multiarch-capable compiler, like those provided by
common distributions the -m32 argument is required to build 32bit code.

Wrap it in cc-option in case the compiler is not multiarch-capable.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20230917-nolibc-syscall-nr-v2-1-03863d509b9a@weissschuh.net
tools/testing/selftests/nolibc/Makefile