Skip to content

Commit

Permalink
bpftool: Allow building statically
Browse files Browse the repository at this point in the history
Sometime it can be useful to haul around a statically built version of
bpftool. Simply add support for passing STATIC=1 while building to build
the tool statically.

Signed-off-by: Nikolay Borisov <[email protected]>
  • Loading branch information
lorddoskias authored and Nobody committed Feb 17, 2022
1 parent 4213ff5 commit dfaa2a8
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 @@ -13,6 +13,10 @@ else
Q = @
endif

ifeq ($(STATIC),1)
CFLAGS += --static
endif

BPF_DIR = $(srctree)/tools/lib/bpf

ifneq ($(OUTPUT),)
Expand Down

0 comments on commit dfaa2a8

Please sign in to comment.