I refer to: ar cr library.a `lorder ${OBJS} | tsort` as you can get on FreeBSD pr MacOS "man lorder" So the idea is to port lorder to Linux (BTW lorder is a shell script) and to replace topological sort by transitive closure. Regards Francis Dupont <fdupont at isc.org>