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 e15e788 commit 98b7a3cCopy full SHA for 98b7a3c
src/Makefile.shlib
@@ -357,7 +357,16 @@ endif
357
else # PORTNAME == aix
358
359
# AIX case
360
-$(shlib) $(stlib): $(OBJS) | $(SHLIB_PREREQS)
+
361
+# There is no correct way to write a rule that generates two files.
362
+# Rules with two targets don't have that meaning, they are merely
363
+# shorthand for two otherwise separate rules. To be safe for parallel
364
+# make, we must chain the dependencies like this. The semicolon is
365
+# important, otherwise make will choose some built-in rule.
366
367
+$(stlib): $(shlib) ;
368
369
+$(shlib): $(OBJS) | $(SHLIB_PREREQS)
370
rm -f $(stlib)
371
$(LINK.static) $(stlib) $^
372
$(RANLIB) $(stlib)
0 commit comments