]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add a default $(CXX) value
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 2 Jun 2020 17:56:49 +0000 (19:56 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 2 Jun 2020 20:03:25 +0000 (22:03 +0200)
commit438e6532501ddf7ff9423858d010cc773bd8e28d
tree12abd358cbd08d6925511650f7300ce2024c83ca
parent327f9eff6fe6781603e4c7704d7d64a603315326
selftests/bpf: Add a default $(CXX) value

When using make kselftest TARGETS=bpf, tools/bpf is built with
MAKEFLAGS=rR, which causes $(CXX) to be undefined, which in turn causes
the build to fail with

  CXX      test_cpp
/bin/sh: 2: g: not found

Fix by adding a default $(CXX) value, like tools/build/feature/Makefile
already does.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200602175649.2501580-3-iii@linux.ibm.com
tools/testing/selftests/bpf/Makefile