diff options
Diffstat (limited to 'meta/recipes-multimedia/alsa/alsa-lib/0001-build-Do-not-try-to-detect-cross-compiler.patch')
-rw-r--r-- | meta/recipes-multimedia/alsa/alsa-lib/0001-build-Do-not-try-to-detect-cross-compiler.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-lib/0001-build-Do-not-try-to-detect-cross-compiler.patch b/meta/recipes-multimedia/alsa/alsa-lib/0001-build-Do-not-try-to-detect-cross-compiler.patch new file mode 100644 index 0000000000..583bc3daab --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-lib/0001-build-Do-not-try-to-detect-cross-compiler.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 17aeb3565f411e7796cabe403f92d15948a8ca95 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 21 Aug 2015 14:42:45 -0700 | ||
4 | Subject: [PATCH] build: Do not try to detect cross-compiler | ||
5 | |||
6 | cross compilers are passed via path may not be a gcc based cross | ||
7 | compiler in such cases this check fails and try's to force gcc based | ||
8 | cross compiler detection, This code is a convenience that limits the | ||
9 | build system | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | Upstream-Status: Pending | ||
14 | |||
15 | configure.ac | 14 -------------- | ||
16 | 1 file changed, 14 deletions(-) | ||
17 | |||
18 | diff --git a/configure.ac b/configure.ac | ||
19 | index 3022cf8..9d77440 100644 | ||
20 | --- a/configure.ac | ||
21 | +++ b/configure.ac | ||
22 | @@ -27,20 +27,6 @@ AC_PREFIX_DEFAULT(/usr) | ||
23 | |||
24 | dnl Checks for programs. | ||
25 | |||
26 | -dnl try to gues cross-compiler if not set | ||
27 | -if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`"; | ||
28 | -then | ||
29 | - AC_MSG_CHECKING(for cross-compiler) | ||
30 | - | ||
31 | - which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc | ||
32 | - which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \ | ||
33 | - && CC=${host_cpu}-${host_os}-gcc | ||
34 | - which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \ | ||
35 | - && CC=${host_cpu}-${host_vendor}-${host_os}-gcc | ||
36 | - | ||
37 | - AC_MSG_RESULT($CC) | ||
38 | -fi | ||
39 | - | ||
40 | CFLAGS="$CFLAGS -D_GNU_SOURCE" | ||
41 | |||
42 | |||
43 | -- | ||
44 | 2.1.4 | ||
45 | |||