Do not create new directories in external toolchain
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 7 Oct 2007 18:23:43 +0000 (18:23 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 7 Oct 2007 18:23:43 +0000 (18:23 -0000)
Makefile

index d1b4c153ff5de5083cbd2430eb04fb36e1dd2c3b..5ebf75eaee7ee5848a6b27ea4a2db93ef07fcf72 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -291,10 +291,12 @@ $(STAGING_DIR):
 ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
        @mkdir -p $(STAGING_DIR)/usr/lib
 else
+ifneq ($(BR2_TOOLCHAIN_EXTERNAL),y)
        @ln -snf . $(STAGING_DIR)/usr
        @mkdir -p $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)
        @ln -snf ../lib $(STAGING_DIR)/usr/lib
        @ln -snf ../lib $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib
+endif
 endif
        @mkdir -p $(STAGING_DIR)/usr/include