1
# configure_cross_compile.patch by Loic Minier <lool@dooz.org>
2
# Remove check that the compiler produces executables we can run.
3
Index: alsa-lib-1.0.21/configure
4
===================================================================
5
--- alsa-lib-1.0.21.orig/configure 2009-09-03 20:33:46.000000000 +0200
6
+++ alsa-lib-1.0.21/configure 2009-09-03 20:33:46.000000000 +0200
8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
9
$as_echo_n "checking whether the C compiler works... " >&6; }
10
# If not cross compiling, check that we can run a simple program.
1
# configure_cross_compile.patch by Daniel T Chen <crimsun@ubuntu.com>
2
# based on prior work by Loic Minier <lool@dooz.org>
3
# Remove check that the compiler produces executables we can run.
4
diff -uNr alsa-lib-1.0.22.pre/configure alsa-lib-1.0.22/configure
5
--- alsa-lib-1.0.22.pre/configure 2009-12-24 07:11:53.000000000 +0000
6
+++ alsa-lib-1.0.22/configure 2009-12-24 07:17:23.000000000 +0000
8
# the compiler is broken, or we cross compile.
9
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
10
$as_echo_n "checking whether we are cross compiling... " >&6; }
11
11
-if test "$cross_compiling" != yes; then
12
12
+if false && test "$cross_compiling" != yes; then
13
if { ac_try='./$ac_file'
14
{ { case "(($ac_try" in
15
15
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;