mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-29 12:49:07 +08:00
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:
committed by
yonghong-song
parent
e5c75f8e94
commit
62706e5557
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user