using dynamic libraries instead of static

2011-07-21 Thread L A
I am trying to cross compile a library on a linux machine. The libstdc++.a that comes with the toolchain is not compiled with fPIC and it is binary only. I would like to use the so file instead. However libtool keeps linking libstdc++.a (as whole-archive) and I get relocation errors. Any ideas abou

Re: using dynamic libraries instead of static

2011-07-22 Thread L A
> Where is the static version being specified?  Look at the command line to > libtool and the command line libtool passes to g++.  If libstdc++.a appears > on the former, then you have a makefile problem.  If libtool is adding it, > then there are a couple places to look. It does not appear on the