Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2009 01:02:44 -0800
From:      perryh@pluto.rain.com
To:        ed@80386.nl, rdivacky@freebsd.org
Cc:        hackers@freebsd.org, christoph.mallon@gmx.de
Subject:   Re: hosted, or not (Re: Renaming all symbols in libmp(3))
Message-ID:  <49a8fdb4.47pe/BeTfmPBIr7P%perryh@pluto.rain.com>
In-Reply-To: <20090227082417.GA55567@freebsd.org>
References:  <20090226180756.GX19161@hoeg.nl> <20090226204243.GA96251@zim.MIT.EDU> <49A70092.6030601@gmx.de> <49a79a4e.jj/fvw29lwxNJgz%2B%perryh@pluto.rain.com> <20090227082417.GA55567@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Roman Divacky <freebsd.org!rdivacky@agora.rdrop.com> wrote:

> On Thu, Feb 26, 2009 at 11:46:22PM -0800, perryh@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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49a8fdb4.47pe/BeTfmPBIr7P%perryh>