changeset 31953:2460c1e69799 stable

build: Disable visibility flags by default (bug #61855, bug #63916). * configure.ac (ENABLE_LIB_VISIBILITY_FLAGS): Change default to not using visibility flags (on stable branch only). Some symbols from using-declarations don't seem to be usable on Linux if symbol visibility is limited.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 01 Apr 2023 14:22:28 +0200
parents d1a846f57379
children 284cb7dfc885 6207fd009875
files configure.ac
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Sat Apr 01 13:21:34 2023 +0200
+++ b/configure.ac	Sat Apr 01 14:22:28 2023 +0200
@@ -2726,10 +2726,10 @@
 
 ### Determine whether libraries should be linked with visibility attributes.
 
-ENABLE_LIB_VISIBILITY_FLAGS=yes
+ENABLE_LIB_VISIBILITY_FLAGS=no
 AC_ARG_ENABLE(lib-visibility-flags,
-  [AS_HELP_STRING([--disable-lib-visibility-flags],
-    [don't build libraries with visibility flags (export all symbols)])],
+  [AS_HELP_STRING([--enable-lib-visibility-flags],
+    [build libraries with visibility flags (export only symbols from API)])],
   [case $enableval in
      yes) ENABLE_LIB_VISIBILITY_FLAGS=yes ;;
      no) ENABLE_LIB_VISIBILITY_FLAGS=no ;;