[Buildroot] [PATCH] libtommath: add -fPIC

Peter Korsgaard peter at korsgaard.com
Sat Apr 30 19:43:46 UTC 2016


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 >> 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.

Hmm, should we do this for all static only libraries in case they would
ever get used by a shared library? E.G. ezxml is a similar package.

-- 
Venlig hilsen,
Peter Korsgaard 



More information about the buildroot mailing list