Re: [RFC PATCH v3 28/37] perf tools: Make perf depend on libbpf

Jiri Olsa
2015-05-22T17:24:29Z

On Sun, May 17, 2015 at 10:56:53AM +0000, Wang Nan wrote:

SNIP

> else
> TE_PATH=$(TRACE_EVENT_DIR)
> LIB_PATH=$(LIB_DIR)
> + BPF_PATH=$(BPF_DIR)
> endif
>
> LIBTRACEEVENT = $(TE_PATH)libtraceevent.a
> @@ -174,6 +177,9 @@ export LIBTRACEEVENT
> LIBAPI = $(LIB_PATH)libapi.a
> export LIBAPI
>
> +LIBBPF = $(BPF_PATH)/libbpf.a
> +export LIBBPF

hum, why does LIBBPF need to be exported?

if it's to match the LIBAPI, it's exported because
of its usage in the util/setup.py, which is not the
case for LIBBPF

jirka