shithub: plan9front

Download patch

ref: 101312c1d733ceff3c1bdcef225933d1de74e849
parent: 01ab07ef729a2dbade38906f4acf2827ea327952
author: Ori Bernstein <>
date: Wed Feb 3 11:10:11 EST 2021

mklib, upas/common: clean up libcommon properly (thanks mikan)

Despite pervious efforts, mk clean still doesn't remove libcommon.a*
files from cmd/upas/common/. To fix this, let's tell cmd/mklib to do
the job instead.

--- a/sys/src/cmd/mklib
+++ b/sys/src/cmd/mklib
@@ -39,7 +39,7 @@
 	rm -f *.[$OS] y.output y.error $CLEANFILES $LIB
-	rm -f *.[$OS] y.output y.error $CLEANFILES
+	rm -f *.[$OS] *.a[$OS] y.output y.error $CLEANFILES
 	$CC $CFLAGS -a `{basename $stem .$objtype}^.c >$target
--- a/sys/src/cmd/upas/common/mkfile
+++ b/sys/src/cmd/upas/common/mkfile
@@ -15,6 +15,4 @@