about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-08-26 02:18:14 +0000
committerUlrich Drepper <drepper@redhat.com>2007-08-26 02:18:14 +0000
commit5dfeae0ec5b5bd6f058c72c6f641c43992973efd (patch)
tree397be152e25cea316a3483e193249ac1c96d25ce /Makerules
parentbd0dcd289c617904265f0f1903582f5ee122eff5 (diff)
downloadglibc-5dfeae0ec5b5bd6f058c72c6f641c43992973efd.tar.gz
glibc-5dfeae0ec5b5bd6f058c72c6f641c43992973efd.tar.xz
glibc-5dfeae0ec5b5bd6f058c72c6f641c43992973efd.zip
* Makerules: Use -p option with mkdir.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index efd2fba58d..db83b24ffe 100644
--- a/Makerules
+++ b/Makerules
@@ -732,7 +732,9 @@ MAKEFLAGS := $(MAKEFLAGS)r
 # Generic rule for making directories.
 %/:
 # mkdir isn't smart enough to strip a trailing /.
-	mkdir $(@:%/=%)
+# We always require a mkdir which supports the -p option to avoid error
+# messages in case of races.
+	mkdir -p $(@:%/=%)
 
 # Make sure that object files are not removed
 # when they are intermediates between sources and library members.