hosted, or not (Re: Renaming all symbols in libmp(3))

perryh at pluto.rain.com perryh at pluto.rain.com
Sat Feb 28 01:11:09 PST 2009


Roman Divacky <freebsd.org!rdivacky at agora.rdrop.com> wrote:

> On Thu, Feb 26, 2009 at 11:46:22PM -0800, perryh at pluto.rain.com wrote:
> > > >> By default, LLVM has a built-in prototype of pow(), similar to
> > > >> GCC. Unlike GCC, LLVM raises a compiler error by default ...
> > 
> > > ... it's invalid code to have a function named pow()
> > > in a hosted environment which is not /The/ pow().
> >   ^^^^^^^^^^^^^^^^^^^^^^^
> > 
> > I don't suppose LLVM supports a commmand-line switch to use
> > embedded mode instead of hosted?
>
> of course it does.... -ffreestanding

So perhaps one solution would be to compile libmp with -ffreestanding?


More information about the freebsd-hackers mailing list