Mercurial > octave
changeset 31331:900c7d9f7fdd
build: Default to link all dependencies for Cygwin and macOS hosts (bug #55367).
* configure.ac: Default to link all dependencies for Cygwin and macOS hosts.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 23 Oct 2022 12:20:07 +0200 |
parents | edccb7c1c8ec |
children | 472df5147221 |
files | configure.ac |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Sat Oct 22 22:07:52 2022 +0200 +++ b/configure.ac Sun Oct 23 12:20:07 2022 +0200 @@ -662,16 +662,24 @@ [NO_UNDEFINED_LDFLAG="$DEFAULT_NO_UNDEFINED_LDFLAG"]) AC_SUBST(NO_UNDEFINED_LDFLAG) +case $host_os in + cygwin* | darwin* ) + DEFAULT_LINK_ALL_DEPS="yes" + ;; + *) + DEFAULT_LINK_ALL_DEPS="no" + ;; +esac AC_ARG_ENABLE([link-all-dependencies], [AS_HELP_STRING([--enable-link-all-dependencies], - [link Octave and its shared libraries with all dependencies, not just those immediately referenced (should not be needed on most systems)])], + [link Octave and its shared libraries with all dependencies, not just those immediately referenced (should not be needed on most systems). This is done by default for cygwin* or darwin* hosts.])], [case $enableval in yes) link_all_deps=yes ;; no) link_all_deps=no ;; *) AC_MSG_ERROR([bad value $enableval for --enable-link-all-dependencies]) ;; esac], - [link_all_deps=no]) + [link_all_deps="$DEFAULT_LINK_ALL_DEPS"]) AM_CONDITIONAL([AMCOND_LINK_ALL_DEPS], [test $link_all_deps = yes]) ### Check for BLAS and LAPACK libraries.