patches/binutils/2.16.1/140-cross-gprof.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Sep 12 23:51:25 2010 +0200 (2010-09-12)
changeset 2123 ff2181adbd28
permissions -rw-r--r--
cc/gcc: disable complibs if not selected

Force gcc to not link with some companion libraries when
there are not needed (because selected-out).

There is no option to tell gcc *not* to build the Graphite and/or
LTO stuff. They *will* be built if gcc finds the suitable companion
libraries. If we do not provide them, but the host has them, then
gcc *will* find them, and link with them.

Consider the following:
- host has suitable PPL and CLooG (eg. Debian Squeeze)
- user wants to build gcc>=4.4
- user de-selects GRAPHITE
- gcc will find the hosts PPL and CLooG, and will use them
- the user moves the toolchain to an older host that does
not have them (eg. Debian Lenny)
- the toolchain fails, when it was properly setup not to

So, explicitly tell gcc *not* to use unneeded companion libs.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@402
     1
--- binutils-2.15/configure.old	2004-07-21 21:36:47.000000000 -0700
yann@402
     2
+++ binutils-2.15/configure	2004-07-21 21:37:08.000000000 -0700
yann@402
     3
@@ -999,7 +999,7 @@
yann@402
     4
 
yann@402
     5
 # Some tools are only suitable for building in a "native" situation.
yann@402
     6
 # Remove these if host!=target.  
yann@402
     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@402
     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@402
     9
 
yann@402
    10
 # Similarly, some are only suitable for cross toolchains.
yann@402
    11
 # Remove these if host=target.
yann@402
    12
--- binutils-2.15/configure.in.old	2004-07-21 21:37:19.000000000 -0700
yann@402
    13
+++ binutils-2.15/configure.in	2004-07-21 21:37:34.000000000 -0700
yann@402
    14
@@ -236,7 +236,7 @@
yann@402
    15
 
yann@402
    16
 # Some tools are only suitable for building in a "native" situation.
yann@402
    17
 # Remove these if host!=target.  
yann@402
    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@402
    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@402
    20
 
yann@402
    21
 # Similarly, some are only suitable for cross toolchains.
yann@402
    22
 # Remove these if host=target.