changeset 30539:c94757297640 stable

build: Disable visibility flags by default. * configure.ac (ENABLE_LIB_VISIBILITY_FLAGS): Change default to not using visibility flags on any platform.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 23 Dec 2021 19:57:12 +0100
parents 9e56eb717561
children 773fd1dcbdbf bbf3eb5d3c2f
files configure.ac
diffstat 1 files changed, 3 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Thu Dec 23 18:16:03 2021 +0100
+++ b/configure.ac	Thu Dec 23 19:57:12 2021 +0100
@@ -2658,19 +2658,10 @@
 
 ### Determine whether libraries should be linked with visibility attributes
 
-case $host_os in
-  darwin*)
-    # Don't enable visibility flags by default on macOS. See bug #59820.
-    ENABLE_LIB_VISIBILITY_FLAGS=no
-  ;;
-  *)
-    ENABLE_LIB_VISIBILITY_FLAGS=yes
-  ;;
-esac
-
+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 (don't export all symbols). This feature is experimental and should only be used for testing.])],
   [case $enableval in
      yes) ENABLE_LIB_VISIBILITY_FLAGS=yes ;;
      no) ENABLE_LIB_VISIBILITY_FLAGS=no ;;