Skip to contentSkip to conversation

build: Do not try to detect cross-compiler

PATCH Applied Tanu Kaskinen 2 participants 2 messages Sep 15, 2015 – Sep 23, 2015

lore
Share & tools
lore
#0 lore raw

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

From: Khem Raj <[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

---
 configure.ac | 14 --------------
 1 file changed, 14 deletions(-)
configure.ac +0 -14
index a482b3e..a14e52d 100644
@@ -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"
 
 
Signature · 1 line
2.5.1
Applied
#1 lore raw
Quoted 9 lines · Tanu Kaskinen

From: Khem Raj <[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

Applied, thanks.

Takashi

Quoted 32 lines
---
 configure.ac | 14 --------------
 1 file changed, 14 deletions(-)
configure.ac +0 -14
index a482b3e..a14e52d 100644
@@ -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"
 
 
Signature · 1 line
2.5.1