diff src/libsndfile-1.0.27/Scripts/linux-to-win-cross-configure.sh @ 125:cd6cdf86811e

Current libsndfile source
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 18 Oct 2016 13:22:47 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libsndfile-1.0.27/Scripts/linux-to-win-cross-configure.sh	Tue Oct 18 13:22:47 2016 +0100
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+case "$1" in
+	w32)
+		compiler_name=i686-w64-mingw32
+		;;
+	w64)
+		compiler_name=x86_64-w64-mingw32
+		;;
+	*)
+		echo "$0 (w32|w64) <other args>"
+		exit 0
+		;;
+	esac
+
+shift
+
+build_cpu=$(dpkg-architecture -qDEB_BUILD_GNU_CPU)
+build_host=$build_cpu-linux
+
+./configure --host=$compiler_name --target=$compiler_name --build=$build_host \
+		--program-prefix='' --disable-sqlite --disable-static $@