mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
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).
This commit is contained in:
parent
e15e7886e6
commit
98b7a3cf2b
@ -357,7 +357,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)
|
||||||
|
Loading…
Reference in New Issue
Block a user