patches/uClibc/0.9.30.2/240-host-utils-depend-on-headers.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jan 28 22:06:49 2011 +0100 (2011-01-28)
changeset 2284 7ede374110e5
permissions -rw-r--r--
config: add an option not to remove the destination directory

In certain circumstances, removing the destination/installation directory
is a bad idea. For example, when the build environment is already taking
care of sanitising the build tree, and pre-installs stuff in there, it is
a very bad idea to remove the destination directory.

This happens now in buildroot, as the crostool-NG backend now installs the
toolchain in the common host-tools directory, and pre-install there a few
host-utilities (eg. host-automake and host-gawk).

Provide a config knob to turn on/off the removal of the destination
directory, defaulting to 'y' (previous behavior), and forced to 'n' when
used as a backend.

Reported-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     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