]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Don't use cxx to test_libpf target
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Fri, 11 Oct 2019 00:28:04 +0000 (03:28 +0300)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 12 Oct 2019 23:08:59 +0000 (16:08 -0700)
commit743bf757242834323536876e81f41adfb6360d55
treead28a8f0cc178c186cc9375381f540334a59c749
parent8d13770538644d5956706614a94924c0270afff3
libbpf: Don't use cxx to test_libpf target

No need to use C++ for test_libbpf target when libbpf is on C and it
can be tested with C, after this change the CXXFLAGS in makefiles can
be avoided, at least in bpf samples, when sysroot is used, passing
same C/LDFLAGS as for lib.

Add "return 0" in test_libbpf to avoid warn, but also remove spaces at
start of the lines to keep same style and avoid warns while apply.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191011002808.28206-12-ivan.khoronzhuk@linaro.org
tools/lib/bpf/Makefile
tools/lib/bpf/test_libbpf.c [new file with mode: 0644]
tools/lib/bpf/test_libbpf.cpp [deleted file]