From 92cb475558927b6738ba442e44055e448707883a Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Tue, 1 Oct 2019 09:27:39 -0700 Subject: [PATCH] makefile: fix install target After latest shared vs static libraries fixes, `make install` target broke as it relied on now removed $(LIBS) variable. This patch fixes issue by listing $(SHARED_LIBS) and $(STATIC_LIBS) explicitly. Tested with and without BUILD_STATIC_ONLY. Fixes: 8b2782a1f250 ("makefile: support libbpf symbol versioning in shared library mode") Reported-by: Michal Rostecki Signed-off-by: Andrii Nakryiko --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 57510ca..6992fbf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -116,7 +116,7 @@ define do_s_install endef install: all install_headers install_pkgconfig - $(call do_s_install,$(LIBS),$(LIBDIR)) + $(call do_s_install,$(STATIC_LIBS) $(SHARED_LIBS),$(LIBDIR)) install_headers: $(call do_install,$(HEADERS),$(INCLUDEDIR)/bpf,644)