diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index c3ce82600e33..682928e5f001 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -64,14 +64,14 @@ OBJS+= ${SRCS:R:S/$/.o/g} lib${LIB}.a:: ${OBJS} @echo building standard ${LIB} library @rm -f lib${LIB}.a - @${AR} cTq lib${LIB}.a `lorder ${OBJS} | tsort` ${LDADD} + @${AR} cTq lib${LIB}.a ${OBJS} ${LDADD} ${RANLIB} lib${LIB}.a POBJS+= ${OBJS:.o=.po} lib${LIB}_p.a:: ${POBJS} @echo building profiled ${LIB} library @rm -f lib${LIB}_p.a - @${AR} cTq lib${LIB}_p.a `lorder ${POBJS} | tsort` ${LDADD} + @${AR} cTq lib${LIB}_p.a ${POBJS} ${LDADD} ${RANLIB} lib${LIB}_p.a llib-l${LIB}.ln: ${SRCS}