If it's generated by libtool, copy the shared_libs.log contents verbatim. Unless you run into very rare cases where flavors change the list a lot, do NOT sort the result. If you do, you lose information: shared_libs.log is generated in build order, so it records valuable information as to which order the port used to build stuff.
When it changes, it's valuable info. It means the software's author(s) ran into a dependency that made them change the order (or plain old big reorganisation of code).
