# HG changeset patch # User Markus Mützel # Date 1640285832 -3600 # Node ID c94757297640e896c2f0f38bde2abab102f4a8ea # Parent 9e56eb717561a65aec3ef8b3c362014392a2ec06 build: Disable visibility flags by default. * configure.ac (ENABLE_LIB_VISIBILITY_FLAGS): Change default to not using visibility flags on any platform. diff -r 9e56eb717561 -r c94757297640 configure.ac --- 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 ;;