Browse Source

Fix linux build and macos liblo

pull/25/head
falkTX 3 years ago
parent
commit
a758dad8a7
2 changed files with 25 additions and 5 deletions
  1. +6
    -4
      bootstrap-common.sh
  2. +19
    -1
      bootstrap-plugins.sh

+ 6
- 4
bootstrap-common.sh View File

@@ -189,11 +189,13 @@ if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then
fi

# otherwise tests fail
export EXTRA_CFLAGS="-fno-associative-math -fno-reciprocal-math -frounding-math"
export EXTRA_CFLAGS="-fno-associative-math -frounding-math"

# if [ "${MACOS}" -eq 0 ]; then
# export EXTRA_CFLAGS+=" -fsignaling-nans"
# fi
if [ "${MACOS}" -eq 1 ]; then
export EXTRA_CFLAGS+=" -fno-reciprocal-math"
else
export EXTRA_CFLAGS+=" -fsignaling-nans"
fi

download libsndfile "${LIBSNDFILE_VERSION}" "${LIBSNDFILE_URL}" "tar.bz2"



+ 19
- 1
bootstrap-plugins.sh View File

@@ -91,8 +91,26 @@ fi
# ---------------------------------------------------------------------------------------------------------------------
# liblo

LIBLO_EXTRAFLAGS="--enable-threads --disable-examples --disable-tools"

if [ "${CROSS_COMPILING}" -eq 1 ]; then
LIBLO_EXTRAFLAGS+=" --disable-tests"
fi

# auto-detection fails
if [ "${MACOS}" -eq 1 ]; then
LIBLO_EXTRAFLAGS+=" ac_cv_func_select=yes ac_cv_func_poll=yes ac_cv_func_setvbuf=yes"
if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then
LIBLO_EXTRAFLAGS+=" ac_cv_c_bigendian=universal"
fi
fi

download liblo "${LIBLO_VERSION}" "${LIBLO_URL}"
build_autoconf liblo "${LIBLO_VERSION}" "--enable-threads --disable-examples --disable-tests --disable-tools"
build_autoconf liblo "${LIBLO_VERSION}" "${LIBLO_EXTRAFLAGS}"

if [ "${CROSS_COMPILING}" -eq 0 ]; then
run_make liblo "${LIBLO_VERSION}" check
fi

# ---------------------------------------------------------------------------------------------------------------------
# pcre (needed for sord_validate, only relevant if we can run the resulting binaries)


Loading…
Cancel
Save