[Buildroot] [PATCH] libtommath: add -fPIC
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sat Apr 30 19:13:11 UTC 2016
Hello,
On Sat, 30 Apr 2016 20:43:26 +0200, Peter Korsgaard wrote:
> > Applied to master, thanks.
>
> Hmm, isn't it a bit odd to build a static library with -fPIC?
>
> But OK, the error message seems to be from trying to link a shared
> library with it.
Well, as you've seen yourself, this static library is then used inside
a shared library, so it has to be built -fPIC.
If you want to build the static library without -fPIC, then the
libtommath package should also provide a shared version of its library,
so that it gets used instead of the static one when linked into a
shared library.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list