http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314
--- Comment #10 from Ruben Van Boxem <vanboxem.ruben at gmail dot com> 2012-09-25 08:11:23 UTC --- I can confirm adding the exports gets rid of the undefined references.
vanboxem.ruben at gmail dot com Tue, 25 Sep 2012 01:11:55 -0700
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314
--- Comment #10 from Ruben Van Boxem <vanboxem.ruben at gmail dot com> 2012-09-25 08:11:23 UTC --- I can confirm adding the exports gets rid of the undefined references.