From 7b81857d6c32c880db9e8e001cc02892c0115dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Thu, 6 Mar 2025 19:09:07 +0900 Subject: [PATCH] Hide symbols from the NIF shared library --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f862af6..63fcb69 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ PRIV_DIR = $(MIX_APP_PATH)/priv NIF_PATH = $(PRIV_DIR)/libpythonx.so C_SRC = $(shell pwd)/c_src/pythonx -CPPFLAGS = -shared -fPIC -std=c++17 -Wall -Wextra -Wno-unused-parameter -Wno-comment +CPPFLAGS = -shared -fPIC -fvisibility=hidden -std=c++17 -Wall -Wextra -Wno-unused-parameter -Wno-comment CPPFLAGS += -I$(ERTS_INCLUDE_DIR) -I$(FINE_INCLUDE_DIR) ifdef DEBUG