patches/uClibc/0.9.30.2/240-host-utils-depend-on-headers.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jul 12 23:52:24 2011 +0200 (2011-07-12)
branch1.11
changeset 2558 b7317d2fe0e9
permissions -rw-r--r--
scripts, cc/gcc: do not fail on existing symlinks or build.log

If the user builds a toolchain over an existing one, so, without removing
CT_PREFIX_DIR, the build fails as the symlinks already exist, as does the
build.log.

This can also happen (for build.log) if the user first ran in download-
or extract-only.

Patch (with no SoB) originally from:
Phil Wilshire <phil.wilshire@overturenetworks.com>

Modified by me as it did not apply cleanly.

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