Skip to content

Commit 7b81857

Browse files
committed
Hide symbols from the NIF shared library
1 parent ea29718 commit 7b81857

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)