Skip to content

Commit 6f1c4de

Browse files
Hide symbols from the NIF shared library (#18)
1 parent ea29718 commit 6f1c4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)/libpythonx.so
33

44
C_SRC = $(shell pwd)/c_src/pythonx
5-
CPPFLAGS = -shared -fPIC -std=c++17 -Wall -Wextra -Wno-unused-parameter -Wno-comment
5+
CPPFLAGS = -shared -fPIC -fvisibility=hidden -std=c++17 -Wall -Wextra -Wno-unused-parameter -Wno-comment
66
CPPFLAGS += -I$(ERTS_INCLUDE_DIR) -I$(FINE_INCLUDE_DIR)
77

88
ifdef DEBUG

0 commit comments

Comments
 (0)