8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba64aed commit b1fa6c0Copy full SHA for b1fa6c0
src/Makefile.shlib
@@ -385,7 +385,16 @@ endif
385
else # PORTNAME == aix
386
387
# AIX case
388
-$(shlib) $(stlib): $(OBJS) | $(SHLIB_PREREQS)
+
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)
398
rm -f $(stlib)
399
$(LINK.static) $(stlib) $^
400
$(RANLIB) $(stlib)
0 commit comments