1

I am trying to cross compile ImageMagick on a linux machine. The libstdc++.a that comes with the toolchain is not compiled with fPIC. I would like to use the so file instead. However libtool keeps linking libstdc++.a (as whole-archive) and I get relocation errors. I have seen the same issue with other libraries as well. Any ideas?

l.thee.a
  • 3,231
  • 6
  • 25
  • 28

1 Answers1

1

Deleting all the la files from the toolchain folder helped. My guess is without the la files, libtool does a search and finds the dynamic libraries.

l.thee.a
  • 3,231
  • 6
  • 25
  • 28