Lines 1-38
Link Here
|
1 |
diff --git a/Makefile b/Makefile |
|
|
2 |
index bc25aba..e1db3d6 100644 |
3 |
--- a/Makefile |
4 |
+++ b/Makefile |
5 |
@@ -66,7 +66,7 @@ endif |
6 |
PREFIX ?= /usr |
7 |
LIBDIR ?= $(PREFIX)/$(LIBSUBDIR) |
8 |
INCLUDEDIR ?= $(PREFIX)/include |
9 |
-UAPIDIR ?= $(PREFIX)/include |
10 |
+UAPIDIR ?= $(PREFIX)/include/bpf/uapi |
11 |
|
12 |
TAGS_PROG := $(if $(shell which etags 2>/dev/null),etags,ctags) |
13 |
|
14 |
@@ -89,6 +89,7 @@ $(OBJDIR)/libbpf.so.$(LIBBPF_VERSION): $(SHARED_OBJS) |
15 |
$(OBJDIR)/libbpf.pc: |
16 |
sed -e "s|@PREFIX@|$(PREFIX)|" \ |
17 |
-e "s|@LIBDIR@|$(LIBDIR)|" \ |
18 |
+ -e "s|@UAPIDIR@|$(UAPIDIR)|" \ |
19 |
-e "s|@VERSION@|$(LIBBPF_VERSION)|" \ |
20 |
< libbpf.pc.template > $@ |
21 |
|
22 |
diff --git a/libbpf.pc.template b/libbpf.pc.template |
23 |
index b45ed53..5ec63c2 100644 |
24 |
--- a/libbpf.pc.template |
25 |
+++ b/libbpf.pc.template |
26 |
@@ -3,10 +3,11 @@ |
27 |
prefix=@PREFIX@ |
28 |
libdir=@LIBDIR@ |
29 |
includedir=${prefix}/include |
30 |
+uapidir=@UAPIDIR@ |
31 |
|
32 |
Name: libbpf |
33 |
Description: BPF library |
34 |
Version: @VERSION@ |
35 |
Libs: -L${libdir} -lbpf |
36 |
Requires.private: libelf zlib |
37 |
-Cflags: -I${includedir} |
38 |
+Cflags: -I${includedir} -I${uapidir} |