A question about --as-needed as an upstream developer who wants to care about more than just Debian or Linux. Am I correct in assuming this will work on any system using GNU binutils? And it doesn't matter whether you are using gcc, clang, etc. What about other OS's such as *BSD, MacOS, etc.?
I guess I could add an autoconf test to see if the linker barfs on --as-needed, but I'm curious how much this actually matters in practice. Thanks, - Ted