mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-06 01:40:15 +08:00
Fix libbpf.pc target
OBJDIR was not specified for libbpf.pc. It works by default since default value of OBJDIR is current directory, but breaks as soon as OBJDIR is set to some other directory: % OBJDIR=build DESTDIR=root make install ... ar rcs build/libbpf.a build/bpf.o build/btf.o build/libbpf.o build/libbpf_errno.o build/netlink.o build/nlattr.o build/str_error.o build/libbpf_probes.o build/bpf_prog_linfo.o build/xsk.o cc -shared -lelf build/bpf.o build/btf.o build/libbpf.o build/libbpf_errno.o build/netlink.o build/nlattr.o build/str_error.o build/libbpf_probes.o build/bpf_prog_linfo.o build/xsk.o -o build/libbpf.so make: *** No rule to make target `libbpf.pc', needed by `all'. Stop. Fix it. Signed-off-by: Andrey Ignatov <rdna@fb.com>
This commit is contained in:
1 parent
46936194ed
commit
2dd2a2d701
1 file changed
+1
-1
+1
-1
@@ -39,7 +39,7 @@ HEADERS := bpf.h libbpf.h btf.h
|
||||
UAPI_HEADERS := $(addprefix $(TOPDIR)/include/uapi/linux/,bpf.h bpf_common.h \
|
||||
btf.h)
|
||||
|
||||
PC_FILE := libbpf.pc
|
||||
PC_FILE := $(OBJDIR)/libbpf.pc
|
||||
|
||||
INSTALL = install
|
||||
|
||||
|
||||
Reference in new issue
Block a user