tsort produces waffle to standard error if it detects loops in its input.
For our purposes in ordering object files this is harmless, so just send
it all to /dev/null.
Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
$(LIBTOOL) -static -c $(OBJS) -o $@ ; \
else \
- ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` ; \
+ ar cr $@ `$(LORDER) $(OBJS) | $(TSORT) 2>/dev/null` ; \
$(RANLIB) $@ ; \
fi
if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
$(LIBTOOL) -static -c -o libmh.a $(OBJS) ; \
else \
- ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT)` ; \
+ ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT) 2>/dev/null` ; \
$(RANLIB) libmh.a ; \
fi