From 9d95dadb1363f8577c789ffc7e632f84e682b89d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 11 Oct 2023 11:09:07 -0400 Subject: [PATCH] macOS package: another workaround for XCode 15 --- macOS/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macOS/build.sh b/macOS/build.sh index ffc710e532..3a79f192bb 100755 --- a/macOS/build.sh +++ b/macOS/build.sh @@ -41,8 +41,9 @@ ln -s /usr/local/opt/gcc/lib/gcc/$GCC_VERSION/libquadmath.a $QUADMATH_DIR ## cd "$ROOTDIR" +# NB: the addition of -Wl,-ld_classic is a workaround for https://github.com/mesonbuild/meson/issues/12282 (see also the native file) common_meson_opts=(-Dbuild_for=matlab -Dbuildtype=release -Dprefer_static=true -Dfortran_args="[ '-B', '$LIB64/Slicot/' ]" \ - -Dc_link_args="[ '-L$QUADMATH_DIR' ]" -Dcpp_link_args="[ '-L$QUADMATH_DIR' ]" -Dfortran_link_args="[ '-L$QUADMATH_DIR' ]" \ + -Dc_link_args="[ '-Wl,-ld_classic', '-L$QUADMATH_DIR' ]" -Dcpp_link_args="[ '-Wl,-ld_classic', '-L$QUADMATH_DIR' ]" -Dfortran_link_args="[ '-Wl,-ld_classic', '-L$QUADMATH_DIR' ]" \ --native-file scripts/homebrew-native.ini) # Build for MATLAB ⩾ R2018a -- GitLab