Skip to content

Commit

Permalink
bpftool: Allow to add compiler flags via EXTRA_CFLAGS variable
Browse files Browse the repository at this point in the history
Adding EXTRA_CFLAGS allowing user to specify extra flags
for CFLAGS variable.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
  • Loading branch information
Jiri Olsa authored and Daniel Borkmann committed Oct 11, 2018
1 parent 438363c commit 0ef6bf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/bpf/bpftool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ CFLAGS += -DPACKAGE='"bpftool"' -D__EXPORTED_HEADERS__ \
-I$(srctree)/tools/lib/bpf \
-I$(srctree)/tools/perf
CFLAGS += -DBPFTOOL_VERSION='"$(BPFTOOL_VERSION)"'
ifneq ($(EXTRA_CFLAGS),)
CFLAGS += $(EXTRA_CFLAGS)
endif

LIBS = -lelf -lbfd -lopcodes $(LIBBPF)

INSTALL ?= install
Expand Down

0 comments on commit 0ef6bf3

Please sign in to comment.