Mercurial > octave
diff src/mkoctfile.in.cc @ 29588:b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
* configure.ac: Use "-no-undefined" linking by default only on platforms that
need it. Don't link all dependencies on macOS by default. Consider changes of
AMCOND_LINK_ALL_DEPS by other functions.
* m4/acinclude.m4: Use "-bundle -undefined dynamic_lookup -bind_at_load" for
linking shared libraries on macOS.
* src/mkoctfile.in.cc (make_vars_map): Add path to octinterp and octave
libraries to linker flags if linking with all dependencies.
author | Andrew Janke <andrew@apjanke.net> |
---|---|
date | Wed, 18 Jul 2018 22:34:08 -0400 |
parents | aef11bb4e6d1 |
children | 32f4357ac8d9 |
line wrap: on
line diff
--- a/src/mkoctfile.in.cc Sat May 01 21:18:50 2021 +0200 +++ b/src/mkoctfile.in.cc Wed Jul 18 22:34:08 2018 -0400 @@ -246,8 +246,7 @@ std::string DEFAULT_LDFLAGS; -#if (defined (OCTAVE_USE_WINDOWS_API) || defined (CROSS)) || (defined __APPLE__ && defined __MACH__) - +#if (defined (OCTAVE_USE_WINDOWS_API) || defined (CROSS) || defined (OCTAVE_LINK_ALL_DEPS)) // We'll be linking the files we compile with -loctinterp and -loctave, // so we need to know where to find them. DEFAULT_LDFLAGS += "-L" + quote_path (vars["OCTLIBDIR"]);