http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60981
Bug ID: 60981 Summary: lto-plugin configuration doesn't test for -static-libgcc (OSX gcc -> clang) Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: tony.theodore at gmail dot com Created attachment 32690 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32690&action=edit lto-plugin -static-libgcc configure.ac test Hi, When building on OSX, gcc is a symlink to clang and doesn't accept the -static-libgcc option. The attached patch basically copies the "have_static_libs" test from the top level configure.ac:1253 to the lto-plugin/configure.ac (removing the c++ parts) - it hasn't been tested as I don't have the right version of autoconf, but copying and modifying the corresponding section from configure works. Cheers, Tony