From 8299ba653b6a5bc85cf16de89df6d52055895512 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Tue, 3 Jan 2023 18:42:02 +0100 Subject: Fix exports --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 \ -- cgit v1.2.3