annotate src/libsndfile-1.0.27/Scripts/linux-to-win-cross-configure.sh @ 168:ceec0dd9ec9c

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 07 Feb 2020 11:51:13 +0000
parents cd6cdf86811e
children
rev   line source
cannam@125 1 #!/bin/bash
cannam@125 2
cannam@125 3 case "$1" in
cannam@125 4 w32)
cannam@125 5 compiler_name=i686-w64-mingw32
cannam@125 6 ;;
cannam@125 7 w64)
cannam@125 8 compiler_name=x86_64-w64-mingw32
cannam@125 9 ;;
cannam@125 10 *)
cannam@125 11 echo "$0 (w32|w64) <other args>"
cannam@125 12 exit 0
cannam@125 13 ;;
cannam@125 14 esac
cannam@125 15
cannam@125 16 shift
cannam@125 17
cannam@125 18 build_cpu=$(dpkg-architecture -qDEB_BUILD_GNU_CPU)
cannam@125 19 build_host=$build_cpu-linux
cannam@125 20
cannam@125 21 ./configure --host=$compiler_name --target=$compiler_name --build=$build_host \
cannam@125 22 --program-prefix='' --disable-sqlite --disable-static $@