8000 Make the AIX case of Makefile.shlib safe for parallel make. · linearregression/postgres@b1fa6c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1fa6c0

Browse files
committed
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).
1 parent ba64aed commit b1fa6c0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Makefile.shlib

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,16 @@ endif
385385
else # PORTNAME == aix
386386

387387
# AIX case
388-
$(shlib) $(stlib): $(OBJS) | $(SHLIB_PREREQS)
388+
389+
# There is no correct way to write a rule that generates two files.
390+
# Rules with two targets don't have that meaning, they are merely
391+
# shorthand for two otherwise separate rules. To be safe for parallel
392+
# make, we must chain the dependencies like this. The semicolon is
393+
# important, otherwise make will choose some built-in rule.
394+
395+
$(stlib): $(shlib) ;
396+
397+
$(shlib): $(OBJS) | $(SHLIB_PREREQS)
389398
rm -f $(stlib)
390399
$(LINK.static) $(stlib) $^
391400
$(RANLIB) $(stlib)

0 commit comments

Comments
 (0)
0