compile and link complex
libtool is supposed to be a drop-in
replacement for the eponymous GNU project. The following differences in
behaviour with GNU Libtool are intentional:
-Lpaths are put before absolute ones. This fixes many (but not all, unfortunately) issues when software links to libraries already installed instead of those just built because, for example, "-L/usr/local/lib" comes before "-L../libfoo".
- Extra (duplicate)
-litems are stripped from the link command line.
- When both "-lstdc++" and "-lestdc++" are encountered in the link command line, only the latter is kept.