summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f09faad78..cd79e52de 100644
--- a/meson.build
+++ b/meson.build
@@ -53,6 +53,14 @@ else
noseh_link_args = []
endif
+# Symbol visibility
+if cc.has_argument('-fvisibility=hidden')
+ add_project_arguments('-fvisibility=hidden', language: 'c')
+endif
+if cxx.has_argument('-fvisibility=hidden')
+ add_project_arguments('-fvisibility=hidden', language: 'cpp')
+endif
+
cdata = configuration_data()
check_headers = [
['HAVE_DLFCN_H', 'dlfcn.h'],