mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
build: Do not try to detect cross-compiler
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> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
9a2fe5399c
commit
c82417650a
1 changed files with 0 additions and 14 deletions
14
configure.ac
14
configure.ac
|
|
@ -27,20 +27,6 @@ AC_PREFIX_DEFAULT(/usr)
|
||||||
|
|
||||||
dnl Checks for programs.
|
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"
|
CFLAGS="$CFLAGS -D_GNU_SOURCE"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue