Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita7dc90d

Browse files
committed
When performing a parallel build (make -j N) with ./configure
--enable-depend it often tries to create the .deps directory twice andbails out when it already exists due to a race condition of if doesn'texist, then create. This patch prevents mkdir from returning an error.Kris Jurka
1 parent79b9564 commita7dc90d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Makefile.global.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.220 2005/09/27 17:39:32 tgl Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.221 2006/02/12 07:29:36 momjian Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -536,7 +536,7 @@ df = $(DEPDIR)/$(*F)
536536
# This converts a .d file in the current directory to a .P file in the .deps
537537
# subdirectory, with the dummy targets as explained above.
538538
definepostprocess-depend
539-
@if test ! -d$(DEPDIR); then mkdir$(DEPDIR); fi
539+
@if test ! -d$(DEPDIR); then mkdir-p$(DEPDIR); fi
540540
@cp$*.d$(df).P
541541
@sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//'\
542542
-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $(df).P

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp