Skip to content

Commit e7ad28e

Browse files
iii-iborkmann
authored andcommitted
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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent d70a6be commit e7ad28e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/bpf/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
include ../../../../scripts/Kbuild.include
33
include ../../../scripts/Makefile.arch
44

5+
CXX ?= $(CROSS_COMPILE)g++
6+
57
CURDIR := $(abspath .)
68
TOOLSDIR := $(abspath ../../..)
79
LIBDIR := $(TOOLSDIR)/lib

0 commit comments

Comments
 (0)