Skip to content

Commit 7cd4b4c

Browse files
committed
Makefile: add libbpf dependency for XDP_TARGETS
Since commit a339ed6 the bpf_helpers.h files comes from libbpf. Thus, add a Makefile build dependency for XDP_TARGETS. This solved a build issue, where I didn't have any USER_TARGETS in the directorys Makefile. Fixes: a339ed6 ("Update libbpf to latest upstream version") Signed-off-by: Jesper Dangaard Brouer <[email protected]>
1 parent 95017a4 commit 7cd4b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ $(USER_TARGETS): %: %.c $(OBJECT_LIBBPF) Makefile $(COMMON_MK) $(COMMON_OBJS) $
107107
$(CC) -Wall $(CFLAGS) $(LDFLAGS) -o $@ $(COMMON_OBJS) \
108108
$< $(LIBS)
109109

110-
$(XDP_OBJ): %.o: %.c Makefile $(COMMON_MK) $(KERN_USER_H) $(EXTRA_DEPS)
110+
$(XDP_OBJ): %.o: %.c Makefile $(COMMON_MK) $(KERN_USER_H) $(EXTRA_DEPS) $(OBJECT_LIBBPF)
111111
$(CLANG) -S \
112112
-target bpf \
113113
-D __BPF_TRACING__ \

0 commit comments

Comments
 (0)