Symbols visibility (#3)

* Sync from bpf-next

Sync the following commits from bpf-next:
commit ab9e08482122 ("libbpf: Per-symbol visibility for DSO")
commit c034a177d3c8 ("bpf: bpftool, add flag to allow non-compat map definitions")

Signed-off-by: Andrey Ignatov <rdna@fb.com>

* Use -fvisibility=hidden by default for DSO

This is Makefile part of:
commit ab9e08482122 ("libbpf: Per-symbol visibility for DSO")

See original commit for details.
This commit is contained in:
Andrey Ignatov
2018-10-16 17:24:08 -07:00
committed by yonghong-song
parent e5c75f8e94
commit 62706e5557
5 changed files with 201 additions and 157 deletions

View File

@@ -11,7 +11,7 @@ ifneq ($(FEATURE_REALLOCARRAY),)
endif
ifdef BUILD_SHARED
ALL_CFLAGS += -fPIC
ALL_CFLAGS += -fPIC -fvisibility=hidden
endif
CFLAGS ?= -g -O2 -Werror -Wall