Well, after looking in your example line-line I realise that I'm just dumb :-)
The -lm solves all problems of unresolved symbols, but now I got that libgpc.a should be a shared library as well.
I remember the issue was discussed some time ago regarding to make it default or not and how to do it.
So I'll try in the archive. Hope it will work!
Nick