diff options
author | Noah Misch <noah@leadboat.com> | 2016-07-23 20:30:03 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2016-07-23 20:30:59 -0400 |
commit | b1fa6c0eb9fadc9eada014227a67eadfec936960 (patch) | |
tree | 216ed44b54851f54157577515f0ca00a8fe26470 /src | |
parent | ba64aed7004a88f66ef204cd8b18c2c5621b2f30 (diff) | |
download | postgresql-b1fa6c0eb9fadc9eada014227a67eadfec936960.tar.gz postgresql-b1fa6c0eb9fadc9eada014227a67eadfec936960.zip |
Make the AIX case of Makefile.shlib safe for parallel make.
Use our typical approach, from src/backend/parser. Back-patch to 9.1
(all supported versions).
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.shlib | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib index 7b062a93faf..39935d3d7c9 100644 --- a/src/Makefile.shlib +++ b/src/Makefile.shlib @@ -385,7 +385,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) |