From: Ulrich Drepper Date: Sun, 26 Aug 2007 02:18:14 +0000 (+0000) Subject: * Makerules: Use -p option with mkdir. X-Git-Tag: upstream/2.20~7715 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dfeae0ec5b5bd6f058c72c6f641c43992973efd;p=platform%2Fupstream%2Flinaro-glibc.git * Makerules: Use -p option with mkdir. --- diff --git a/ChangeLog b/ChangeLog index f113b74..fa53b60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2007-08-25 Ulrich Drepper + * Makerules: Use -p option with mkdir. + * nis/nis_xdr.c (_xdr_nis_server): Work around gcc alias warning. (_xdr_directory_obj): Likewise. (xdr_entry_obj): Likewise. diff --git a/Makerules b/Makerules index efd2fba..db83b24 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.