summaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-10-07 17:22:56 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-10-07 17:22:56 +0000
commit06cd2634a23bfac2c18e0ac94f78ff0702e56bca (patch)
treeeb2bec675a49fef65019f145414365df6310a19a /toolchain
parent5cfb2f794f603475b82a545356df2ba58a3b1176 (diff)
downloadbuildroot-novena-06cd2634a23bfac2c18e0ac94f78ff0702e56bca.tar.gz
buildroot-novena-06cd2634a23bfac2c18e0ac94f78ff0702e56bca.zip
Do not create directories, if they exist
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/gcc-uclibc-3.x.mk2
-rw-r--r--toolchain/gcc/gcc-uclibc-4.x.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/toolchain/gcc/gcc-uclibc-3.x.mk b/toolchain/gcc/gcc-uclibc-3.x.mk
index 3e530795e..6d615f664 100644
--- a/toolchain/gcc/gcc-uclibc-3.x.mk
+++ b/toolchain/gcc/gcc-uclibc-3.x.mk
@@ -277,7 +277,7 @@ $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
-C $(GCC_BUILD_DIR2) install
if [ -d "$(STAGING_DIR)/usr/lib64" ]; then \
if [ ! -e "$(STAGING_DIR)/usr/lib" ]; then \
- mkdir "$(STAGING_DIR)/usr/lib"; \
+ mkdir -p "$(STAGING_DIR)/usr/lib"; \
fi; \
mv "$(STAGING_DIR)/usr/lib64/"* "$(STAGING_DIR)/usr/lib/"; \
rmdir "$(STAGING_DIR)/usr/lib64"; \
diff --git a/toolchain/gcc/gcc-uclibc-4.x.mk b/toolchain/gcc/gcc-uclibc-4.x.mk
index e646c515e..462149028 100644
--- a/toolchain/gcc/gcc-uclibc-4.x.mk
+++ b/toolchain/gcc/gcc-uclibc-4.x.mk
@@ -290,7 +290,7 @@ $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
-C $(GCC_BUILD_DIR2) install
if [ -d "$(STAGING_DIR)/lib64" ]; then \
if [ ! -e "$(STAGING_DIR)/lib" ]; then \
- mkdir "$(STAGING_DIR)/lib"; \
+ mkdir -p "$(STAGING_DIR)/lib"; \
fi; \
mv "$(STAGING_DIR)/lib64/"* "$(STAGING_DIR)/lib/"; \
rmdir "$(STAGING_DIR)/lib64"; \