changeset 29811:f98303911259 stable

build: Set DL_LDFLAGS in the build rules for .oct or .mex files. * test/mex/module.mk: Set DL_LDFLAGS in the build rules for .oct or .mex files. We need to override the default value of that variable on macOS to build these files before installing Octave.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 24 Jun 2021 18:50:25 +0200
parents 26ade4c9b67b
children 174907ff5411 ba49cea1597f
files test/mex/module.mk
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/mex/module.mk	Thu Jun 24 17:58:24 2021 +0200
+++ b/test/mex/module.mk	Thu Jun 24 18:50:25 2021 +0200
@@ -35,6 +35,7 @@
   -L$(top_builddir)/liboctave/.libs
 
 MKOCTFILE = \
+  DL_LDFLAGS="$(DL_LDFLAGS)" \
   $(top_builddir)/src/mkoctfile $(MKOCTFILECPPFLAGS) $(MKOCTFILELDFLAGS)
 
 MKMEXFILECPPFLAGS = \
@@ -45,6 +46,7 @@
   -L$(top_builddir)/liboctave/.libs
 
 MKMEXFILE = \
+  DL_LDFLAGS="$(DL_LDFLAGS)" \
   $(top_builddir)/src/mkoctfile --mex $(MKMEXFILECPPFLAGS) $(MKMEXFILELDFLAGS)
 
 $(MEX_TEST_FUNCTIONS) : %.mex : %.c | %reldir%/$(octave_dirstamp)