diff options
| author | Noah Misch | 2016-07-24 00:30:03 +0000 |
|---|---|---|
| committer | Noah Misch | 2016-07-24 00:30:48 +0000 |
| commit | 98b7a3cf2b62f06230e0b056dc95c71b815f2814 (patch) | |
| tree | 6c95315508b2e187755cb9574050820a4c2c0d51 /src | |
| parent | e15e7886e685c6284d69bbe7f3ce61f16ed62b2d (diff) | |
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 4ca894a2932..3a6b404371b 100644 --- a/src/Makefile.shlib +++ b/src/Makefile.shlib @@ -357,7 +357,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) |
