git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6d85bb1)
Make the AIX case of Makefile.shlib safe for parallel make.
2016年7月24日 00:30:03 +0000 (20:30 -0400)
2016年7月24日 00:30:03 +0000 (20:30 -0400)
Use our typical approach, from src/backend/parser. Back-patch to 9.1
(all supported versions).


diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index 86db52fe5e1f5b0c36ea91eff2e30a5a5a387f1e..924d21f443cf60e326ad5cf104c4308b3188939a 100644 (file)
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -338,7 +338,16 @@ endif
else # PORTNAME == aix
# AIX case
-$(shlib) $(stlib): $(OBJS) | $(SHLIB_PREREQS)
+
+# There is no correct way to write a rule that generates two files.
+# Rules with two targets don't have that meaning, they are merely
+# shorthand for two otherwise separate rules. To be safe for parallel
+# make, we must chain the dependencies like this. The semicolon is
+# important, otherwise make will choose some built-in rule.
+
+$(stlib): $(shlib) ;
+
+$(shlib): $(OBJS) | $(SHLIB_PREREQS)
rm -f $(stlib)
$(LINK.static) $(stlib) $^
$(RANLIB) $(stlib)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /