summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1da3524..9604093 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,11 @@ SONAME1=libreichwein.so
SONAME2=libreichwein.so.0
SONAME3=libreichwein.so.0.0.0
-CXXFLAGS+= -fvisibility=hidden -fPIC
+# By default, don't export. Explicitly mark exports in C++ with:
+# __attribute__((visibility("default")))
+CXXFLAGS+=-fvisibility=hidden
+
+CXXFLAGS+=-fPIC
PROGSRC=\
file.cpp \