alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH alsa-lib] build: Do not try to detect cross-compiler
@ 2015-09-15 15:48 Tanu Kaskinen
  2015-09-23  8:39 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Tanu Kaskinen @ 2015-09-15 15:48 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai, Khem Raj

From: Khem Raj <raj.khem@gmail.com>

cross compilers are passed via path may not be a gcc based cross
compiler in such cases this check fails and try's to force gcc based
cross compiler detection, This code is a convenience that limits the
build system

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 configure.ac | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/configure.ac b/configure.ac
index a482b3e..a14e52d 100644
--- 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"
 
 
-- 
2.5.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH alsa-lib] build: Do not try to detect cross-compiler
  2015-09-15 15:48 [PATCH alsa-lib] build: Do not try to detect cross-compiler Tanu Kaskinen
@ 2015-09-23  8:39 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2015-09-23  8:39 UTC (permalink / raw)
  To: Tanu Kaskinen; +Cc: alsa-devel, Khem Raj

On Tue, 15 Sep 2015 17:48:02 +0200,
Tanu Kaskinen wrote:
> 
> From: Khem Raj <raj.khem@gmail.com>
> 
> cross compilers are passed via path may not be a gcc based cross
> compiler in such cases this check fails and try's to force gcc based
> cross compiler detection, This code is a convenience that limits the
> build system
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>

Applied, thanks.


Takashi

> ---
>  configure.ac | 14 --------------
>  1 file changed, 14 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index a482b3e..a14e52d 100644
> --- 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"
>  
>  
> -- 
> 2.5.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-23  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-15 15:48 [PATCH alsa-lib] build: Do not try to detect cross-compiler Tanu Kaskinen
2015-09-23  8:39 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).