From c3947dd94e866994fec3c3ec0044b82a068d03f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Thu, 17 Dec 2020 19:11:54 +0100 Subject: [PATCH] Build system: fix treatment of LDFLAGS when detecting slicot for MATLAB Since the user-provided value will be also used at link time, so it makes sense to add it here. --- m4/ax_slicot.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/ax_slicot.m4 b/m4/ax_slicot.m4 index 921bc0945..37bfaa843 100644 --- a/m4/ax_slicot.m4 +++ b/m4/ax_slicot.m4 @@ -43,7 +43,7 @@ AC_DEFUN([AX_SLICOT], AC_FC_FUNC(sb02od) if test "$1" = matlab; then - LDFLAGS="$MATLAB_LDFLAGS_NOMAP $LDFLAGS_SLICOT" + LDFLAGS="$LDFLAGS $MATLAB_LDFLAGS_NOMAP $LDFLAGS_SLICOT" case ${MATLAB_ARCH} in glnxa64 | win64 | maci64)