the Ubuntu gcc (as well as the OpenSuse gcc) sets ---as-needed as the default, so your configure test fails, making wrong assumptions. So better build your configure test with -Wl,--no-as-needed.
** Changed in: gcc-defaults (Ubuntu) Importance: High => Undecided ** Changed in: gcc-defaults (Ubuntu) Status: Confirmed => Invalid ** Changed in: binutils (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1340250 Title: "#pragma weak" symbol is 0 even when defined To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1340250/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs