From 72b9db112296bb56c930ede3c9a282777114363f Mon Sep 17 00:00:00 2001 From: Ted Hess Date: Tue, 14 Oct 2014 12:41:47 -0400 Subject: [PATCH] alsa-lib: remove cross-compile guess (restore old patch) Signed-off-by: Ted Hess --- .../002-remove_cross_compile_guess.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libs/alsa-lib/patches/002-remove_cross_compile_guess.patch diff --git a/libs/alsa-lib/patches/002-remove_cross_compile_guess.patch b/libs/alsa-lib/patches/002-remove_cross_compile_guess.patch new file mode 100644 index 000000000..d8f9f122d --- /dev/null +++ b/libs/alsa-lib/patches/002-remove_cross_compile_guess.patch @@ -0,0 +1,23 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -27,20 +27,6 @@ AC_PREFIX_DEFAULT(/usr) + + dnl Checks for programs. + +-dnl try to gues cross-compiler if not set +-if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`"; +-then +- AC_MSG_CHECKING(for cross-compiler) +- +- which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc +- which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \ +- && CC=${host_cpu}-${host_os}-gcc +- which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \ +- && CC=${host_cpu}-${host_vendor}-${host_os}-gcc +- +- AC_MSG_RESULT($CC) +-fi +- + CFLAGS="$CFLAGS -D_GNU_SOURCE" + +