From 0e5a7c252535aed1a625ea36cd1717155866e7ea Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 23 Dec 2023 14:32:26 +0100 Subject: [PATCH] Fix liblo tests Signed-off-by: falkTX --- bootstrap-plugins.sh | 5 ++++- setup/env.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bootstrap-plugins.sh b/bootstrap-plugins.sh index 2b89e4b..46900ce 100755 --- a/bootstrap-plugins.sh +++ b/bootstrap-plugins.sh @@ -418,13 +418,16 @@ if [ "${MACOS}" -eq 1 ]; then if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then LIBLO_EXTRAFLAGS+=" ac_cv_c_bigendian=universal" fi +# use of wrong macro, should be _WIN32 +elif [ "${MACOS}" -eq 1 ]; then + export EXTRA_CFLAGS="-DWIN32" fi download liblo "${LIBLO_VERSION}" "${LIBLO_URL}" build_autoconf liblo "${LIBLO_VERSION}" "${LIBLO_EXTRAFLAGS}" # FIXME tests fail on macOS -if [ -z "${PAWPAW_SKIP_TESTS}" ] || [ "${PAWPAW_SKIP_TESTS}" -eq 0 ] && [ "${MACOS}" -eq 0 ]; then +if ([ -z "${PAWPAW_SKIP_TESTS}" ] || [ "${PAWPAW_SKIP_TESTS}" -eq 0 ]) && [ "${MACOS}" -eq 0 ]; then run_make liblo "${LIBLO_VERSION}" check fi diff --git a/setup/env.sh b/setup/env.sh index 755d874..b1a88c5 100644 --- a/setup/env.sh +++ b/setup/env.sh @@ -65,7 +65,7 @@ if [ -z "${PAWPAW_SKIP_LTO}" ] || [ "${PAWPAW_SKIP_LTO}" -eq 0 ]; then PAWPAW_PREFIX+="-lto" fi -if [ -n "${PAWPAW_NOSIMD}" ] && [ "${PAWPAW_NOSIMD}" -ne 0 ]; then +if [ -n "${PAWPAW_NOSIMD}" ] && [ "${PAWPAW_NOSIMD}" -eq 1 ]; then PAWPAW_BUILDDIR+="-nosimd" PAWPAW_PREFIX+="-nosimd" fi