patches/uClibc/0.9.30.2/240-host-utils-depend-on-headers.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@1819
     1
From 47e88c04e01299f975ff23f33035d0f34a8f6787 Mon Sep 17 00:00:00 2001
yann@1819
     2
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
yann@1819
     3
Date: Fri, 22 Jan 2010 13:32:44 +0100
yann@1819
     4
Subject: [PATCH 06/15] {,host}utils depend on headers
yann@1819
     5
yann@1819
     6
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
yann@1819
     7
---
yann@1819
     8
 Makefile.in |    4 ++--
yann@1819
     9
 1 files changed, 2 insertions(+), 2 deletions(-)
yann@1819
    10
yann@1819
    11
diff --git a/Makefile.in b/Makefile.in
yann@1819
    12
index 4c5aecb..ec4c28e 100644
yann@1819
    13
--- a/Makefile.in
yann@1819
    14
+++ b/Makefile.in
yann@1819
    15
@@ -436,7 +436,7 @@ ifeq ($(HAVE_SHARED),y)
yann@1819
    16
 	fi
yann@1819
    17
 endif
yann@1819
    18
 
yann@1819
    19
-utils:
yann@1819
    20
+utils: headers
yann@1819
    21
 	$(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" -C utils $@
yann@1819
    22
 
yann@1819
    23
 # Installs helper applications, such as 'ldd' and 'ldconfig'
yann@1819
    24
@@ -445,7 +445,7 @@ install_utils: utils
yann@1819
    25
 
yann@1819
    26
 endif # ifeq ($(HAVE_DOT_CONFIG),y)
yann@1819
    27
 
yann@1819
    28
-hostutils:
yann@1819
    29
+hostutils: headers
yann@1819
    30
 	$(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" HOSTCC="$(HOSTCC)" DOTHOST=.host -C utils $@
yann@1819
    31
 
yann@1819
    32
 install_hostutils: hostutils
yann@1819
    33
-- 
yann@1819
    34
1.6.6.1
yann@1819
    35