Re: [RFC PATCH v6 22/32] perf tools: Make perf depend on libbpf

Wangnan (F)
2015-06-09T10:35:18Z

On 2015/6/9 13:50, Wang Nan wrote:

[SNIP]
> +LIBBPF = $(BPF_PATH)libbpf.a
> +
> # python extension build directories
> PYTHON_EXTBUILD := $(OUTPUT)python_ext_build/
> PYTHON_EXTBUILD_LIB := $(PYTHON_EXTBUILD)lib/
> @@ -227,6 +232,9 @@ export PERL_PATH
> LIB_FILE=$(OUTPUT)libperf.a
>
> PERFLIBS = $(LIB_FILE) $(LIBAPI) $(LIBTRACEEVENT)
> +ifndef NO_LIBELF
> + PERFLIBS += $(LIBBPF)
> +endif
>

Here should be

ifndef NO_LIBBPF
PERFLIBS += $(LIBBPF)
endif