Skip to contentSkip to conversation

build: Do not try to detect cross-compiler

PATCH Applied Mike Frysinger 2 participants 2 messages Oct 8, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: Do not try to detect cross-compiler

From: Mike Frysinger <[email protected]>

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.

---
Note: this is the same fix that landed in alsa-lib.

 configure.ac | 14 --------------
 1 file changed, 14 deletions(-)
configure.ac +0 -14
index 8c2d1a5..79a9aaf 100644
@@ -12,20 +12,6 @@ AM_GNU_GETTEXT_VERSION([0.15])
 
 dnl Checks for programs.
 
-dnl try to gues cross-compiler if not set
-if test "x$target" != "x$host" -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 ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
-  && CC=${target_cpu}-${target-os}-gcc
-  which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
-  && CC=${target_cpu}-${target_vendor}-${target_os}-gcc
-
-  AC_MSG_RESULT($CC)
-fi
-
 AC_PROG_CC
 dnl AC_PROG_CXX
 AC_PROG_INSTALL
Signature · 1 line
2.5.2
Applied
#1 lore raw
Quoted 11 lines · Mike Frysinger

From: Mike Frysinger <[email protected]>

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.

---
Note: this is the same fix that landed in alsa-lib.

Applied, thanks.

Takashi

Quoted 32 lines
 configure.ac | 14 --------------
 1 file changed, 14 deletions(-)
configure.ac +0 -14
index 8c2d1a5..79a9aaf 100644
@@ -12,20 +12,6 @@ AM_GNU_GETTEXT_VERSION([0.15])
 
 dnl Checks for programs.
 
-dnl try to gues cross-compiler if not set
-if test "x$target" != "x$host" -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 ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
-  && CC=${target_cpu}-${target-os}-gcc
-  which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
-  && CC=${target_cpu}-${target_vendor}-${target_os}-gcc
-
-  AC_MSG_RESULT($CC)
-fi
-
 AC_PROG_CC
 dnl AC_PROG_CXX
 AC_PROG_INSTALL
Signature · 1 line
2.5.2