libbpf: Compile in PIC mode only for shared library case
authorAndrii Nakryiko <andriin@fb.com>
Tue, 29 Sep 2020 22:06:04 +0000 (15:06 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 30 Sep 2020 00:05:31 +0000 (17:05 -0700)
commitb0efc216f577997bf563d76d51673ed79c3d5f71
tree91d6a14de27cdf4875abc82692bea293485f16ce
parent0a62291d697f1d2882650f5b9f97d331ad9a505b
libbpf: Compile in PIC mode only for shared library case

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 <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200929220604.833631-3-andriin@fb.com
tools/lib/bpf/Makefile