File: linux-to-win-cross-configure.sh

package info (click to toggle)
libsndfile 1.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,108 kB
  • sloc: ansic: 55,350; cpp: 1,108; python: 791; makefile: 545; sh: 539; cs: 122
file content (22 lines) | stat: -rwxr-xr-x 402 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 $@