Skip to contentSkip to conversation

gcc with static gmp & mpfr

Buildroot Hinko Kocevar 1 participant 1 message Dec 3, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I want to build a toolchain that is possible to move between different machines (under the same folder /usr/local/cris-uclibc). When using '-lm' to link final application binary I encountered problems about missing gmp and/or mpfr missing symbols!? Also each target machine that want to use the toolchain needs to provide their own libgmp and libmpfr..

Is there a simple way of forcing gcc to use only static gmp and mpfr libraries?

Note, I've changed '--enable-shared' -> '--disable-shared' in both packages, but I've broke dependencies on shared objects that their makefiles rely on, causing recompilation of gmp and mpfr for every make invocation.

Thank you,
Hinko

Signature · 6 lines
Hinko Ko?evar, OSS developer
?ETRTA POT, d.o.o.
Planina 3, 4000 Kranj, SI EU
tel     ++386 (0) 4 280 66 03
e-mail  hinko.kocevar at cetrtapot.si
http    www.cetrtapot.si