Skip to content

Commit c75030f

Browse files
committed
Add visibility hidden in example Makefiles
1 parent ad18a73 commit c75030f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PRIV_DIR := $(MIX_APP_PATH)/priv
22
NIF_PATH := $(PRIV_DIR)/libexample.so
33
C_SRC := $(shell pwd)/c_src
44

5-
CPPFLAGS := -shared -fPIC -std=c++17 -Wall -Wextra
5+
CPPFLAGS := -shared -fPIC -fvisibility=hidden -std=c++17 -Wall -Wextra
66
CPPFLAGS += -I$(ERTS_INCLUDE_DIR) -I$(FINE_INCLUDE_DIR)
77

88
ifdef DEBUG

test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PRIV_DIR := $(MIX_APP_PATH)/priv
22
NIF_PATH := $(PRIV_DIR)/libfinest.so
33
C_SRC := $(shell pwd)/c_src
44

5-
CPPFLAGS := -shared -fPIC -std=c++17 -Wall -Wextra
5+
CPPFLAGS := -shared -fPIC -fvisibility=hidden -std=c++17 -Wall -Wextra
66
CPPFLAGS += -I$(ERTS_INCLUDE_DIR) -I$(FINE_INCLUDE_DIR)
77
# We want to eliminate all warnings, so the end user doesn't see any.
88
CPPFLAGS += -Werror

0 commit comments

Comments
 (0)