diff --git a/mk/target.mk b/mk/target.mk
index eb3801d303d0f55f0f112c233de430d166dc3b3b..b1d87bb8227b5d3a20d3427fed4286bcd78e0b59 100644
--- a/mk/target.mk
+++ b/mk/target.mk
@@ -380,7 +380,7 @@ SRC_HC_OPTS += -split-objs
 
 define BUILD_LIB
 $(RM) $@
-TMPDIR=$(TMPDIR); export TMPDIR; ( echo $(STUBOBJS) ; $(FIND) $(patsubst %.$(way_)o,%,$(LIBOBJS)) -name '*.$(way_)o' -print ) | xargs ar q $@
+( echo $(STUBOBJS) ; $(FIND) $(patsubst %.$(way_)o,%,$(LIBOBJS)) -name '*.$(way_)o' -print ) | xargs ar q $@
 $(RANLIB) $@
 endef