Public bug reported: gcc passes --as-needed by default to the linker. clang/clang++ does not. See here: https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes#GCC_4.6_Toolchain
I would expect that clang(++) works as gcc/g++ in that respect. Rgds, Chris ** Affects: clang (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1023870 Title: clang does not pass --as-needed to linker like gcc To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1023870/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs