Mercurial > octave
changeset 30347:29efaa1d32d7 stable
Disable lib visibility flags by default on macOS (bug #59820).
* configure.ac (lib-visibility-flags): Disable lib visibility flags by default
on macOS.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 24 Nov 2021 19:09:14 +0100 |
parents | 2e733d9ce10e |
children | 54f5b0611d4f 5c6c5c8bbefd |
files | configure.ac |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Wed Nov 24 11:58:02 2021 -0500 +++ b/configure.ac Wed Nov 24 19:09:14 2021 +0100 @@ -2648,7 +2648,16 @@ ### Determine whether libraries should be linked with visibility attributes -ENABLE_LIB_VISIBILITY_FLAGS=yes +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 + AC_ARG_ENABLE(lib-visibility-flags, [AS_HELP_STRING([--disable-lib-visibility-flags], [don't build libraries with visibility flags (export all symbols)])],