Re: [PATCH bpf-next 3/3] libbpf: compile in PIC mode only for shared library case

2020-09-29 Thread Martin KaFai Lau
On Tue, Sep 29, 2020 at 03:06:04PM -0700, Andrii Nakryiko wrote: > Libbpf compiles .o's for static and shared library modes separately, so no > need to specify -fPIC for both. Keep it only for shared library mode. Acked-by: Martin KaFai Lau

[PATCH bpf-next 3/3] libbpf: compile in PIC mode only for shared library case

2020-09-29 Thread Andrii Nakryiko
Libbpf compiles .o's for static and shared library modes separately, so no need to specify -fPIC for both. Keep it only for shared library mode. Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/lib/bpf/Makefile