summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-03 18:42:02 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-03 18:42:02 +0100
commit8299ba653b6a5bc85cf16de89df6d52055895512 (patch)
tree65b6284fa3f01e9340b03a13ccc90ee5b47490c4 /Makefile
parenta82d947a594b01af54e056473799ebab619e2bd2 (diff)
Fix exports
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 \