uclibc: move tools to host dir
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 28 Dec 2010 19:10:28 +0000 (16:10 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 28 Dec 2010 21:56:45 +0000 (22:56 +0100)
Move uclibc host tools (ldd/ldconfig) to host dir.
They were previously installed in the staging dir.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/uClibc/uclibc.mk

index e05e16c4320ae1f3508921012a0e6792c89b56db..ec928243cbb85d1e40f058132dd9105ad739d768 100644 (file)
@@ -450,17 +450,17 @@ $(STAGING_DIR)/usr/lib/libc.a: $(UCLIBC_DIR)/lib/libc.a
        fi
        # Build the host utils. Need to add an install target...
        $(MAKE1) -C $(UCLIBC_DIR)/utils \
-               PREFIX=$(STAGING_DIR) \
+               PREFIX=$(HOST_DIR) \
                HOSTCC="$(HOSTCC)" \
                hostutils
        if [ -f $(UCLIBC_DIR)/utils/ldd.host ]; then \
-               install -c $(UCLIBC_DIR)/utils/ldd.host $(STAGING_DIR)/usr/bin/ldd; \
-               ln -sf ldd $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-ldd; \
+               install -D $(UCLIBC_DIR)/utils/ldd.host $(HOST_DIR)/usr/bin/ldd; \
+               ln -sf ldd $(HOST_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-ldd; \
        fi
        if [ -f $(UCLIBC_DIR)/utils/ldconfig.host ]; then \
-               install -c $(UCLIBC_DIR)/utils/ldconfig.host $(STAGING_DIR)/usr/bin/ldconfig; \
-               ln -sf ldconfig $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-ldconfig; \
-               ln -sf ldconfig $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-ldconfig; \
+               install -D $(UCLIBC_DIR)/utils/ldconfig.host $(HOST_DIR)/usr/bin/ldconfig; \
+               ln -sf ldconfig $(HOST_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-ldconfig; \
+               ln -sf ldconfig $(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-ldconfig; \
        fi
        touch -c $@