Commit e8564ef0 authored by Noah Misch's avatar Noah Misch

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).
parent 6d85bb1b
...@@ -338,7 +338,16 @@ endif ...@@ -338,7 +338,16 @@ endif
else # PORTNAME == aix else # PORTNAME == aix
# AIX case # 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) rm -f $(stlib)
$(LINK.static) $(stlib) $^ $(LINK.static) $(stlib) $^
$(RANLIB) $(stlib) $(RANLIB) $(stlib)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment