patches/binutils/2.17/200-cross-gprof.patch
author Johannes Stezenbach <js@sig21.net>
Thu Jul 29 19:30:37 2010 +0200 (2010-07-29)
branch1.7
changeset 2047 ace1d90c9b15
parent 56 07a6a48962b7
permissions -rw-r--r--
scripts: remove . from $PATH

Add CT_SanitizePath function which removes entries referring to ., /tmp
and non-existing directories from $PATH, and call it early in the
build script.

If . is in PATH, gcc-4.4.4 build breaks:

[ALL ] checking what assembler to use...
/tmp/build/targets/arm-unknown-linux-uclibcgnueabi/build/gcc-core-static/arm-unknown-linux-uclibcgnueabi/bin/as
...
[ALL ] config.status: creating as

i.e. "as" is supposed to be the arm-unknown-linux-uclibcgnueabi cross assembler,
but config.status creates a local "as" script which is calling the
host assembler.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
[Yann E. MORIN: style fixes + explanations]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 20dd8cef1c8adff0aa3e78ae6d7acfbc45ed5a83)
yann@56
     1
--- binutils-2.17/configure.old	2004-07-21 21:36:47.000000000 -0700
yann@56
     2
+++ binutils-2.17/configure	2004-07-21 21:37:08.000000000 -0700
yann@56
     3
@@ -1022,7 +1022,7 @@
yann@56
     4
 
yann@56
     5
 # Some tools are only suitable for building in a "native" situation.
yann@56
     6
 # Remove these if host!=target.  
yann@56
     7
-native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
yann@56
     8
+native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
yann@56
     9
 
yann@56
    10
 # Similarly, some are only suitable for cross toolchains.
yann@56
    11
 # Remove these if host=target.
yann@56
    12
--- binutils-2.17/configure.in.old	2004-07-21 21:37:19.000000000 -0700
yann@56
    13
+++ binutils-2.17/configure.in	2004-07-21 21:37:34.000000000 -0700
yann@56
    14
@@ -227,7 +227,7 @@
yann@56
    15
 
yann@56
    16
 # Some tools are only suitable for building in a "native" situation.
yann@56
    17
 # Remove these if host!=target.  
yann@56
    18
-native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
yann@56
    19
+native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
yann@56
    20
 
yann@56
    21
 # Similarly, some are only suitable for cross toolchains.
yann@56
    22
 # Remove these if host=target.