Skip to content

Commit

Permalink
makefile: turn libbpfgo-static into default (#277)
Browse files Browse the repository at this point in the history
Some environments might not have libbpf-devel installed, for example,
and in those environments "make all" fails with missing bpf/bpf.h.
Turn the static build the default one, which makes more sense.
  • Loading branch information
rafaeldtinoco authored Dec 12, 2022
1 parent 66a9ab6 commit d0e93b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ CGO_LDFLAGS_DYN = "-lelf -lz -lbpf"

# default == shared lib from OS package

all: libbpfgo-dynamic
test: libbpfgo-dynamic-test
all: libbpfgo-static
test: libbpfgo-static-test

# libbpfgo test object

Expand Down

0 comments on commit d0e93b7

Please sign in to comment.