summaryrefslogtreecommitdiff
path: root/macros.mk
diff options
context:
space:
mode:
Diffstat (limited to 'macros.mk')
-rw-r--r--macros.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/macros.mk b/macros.mk
index 15529f6..6df5b3a 100644
--- a/macros.mk
+++ b/macros.mk
@@ -45,8 +45,9 @@ V ?= 0
CPPFLAGS += -I$(TOPDIR) -I$(TOPDIR)/include
LIBFLAGS =
-CFLAGS ?= -Wl,-z,relro -Wall -O0 -g
+CFLAGS ?= -Wl,-z,relro -Wall -O0 -g -fvisibility=hidden
CFLAGS += -fPIC
+PYCFLAGS ?= -fvisibility=default
LDFLAGS ?= -z relro -g
#
@@ -107,7 +108,7 @@ VERSION_HDR = version.h
PY_DISTUTILS = \
VERSION_RELEASE="$(VERSION_RELEASE)" \
- CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \
+ CFLAGS="$(CFLAGS) $(CPPFLAGS) $(PYCFLAGS)" LDFLAGS="$(LDFLAGS)" \
$(PYTHON) ./setup.py
ifeq ($(V),0)