Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 2002 12:42:00 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Maxime Henrion <mux@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: duplicate -ffreestanding in kernel build
Message-ID:  <3D0B9888.372EAA3E@mindspring.com>
References:  <20020615191003.I747-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote:
> This is a bug in bsd.kern.mk.  -ffreestanding never belonged there, since
> it is also needed for modules and perhaps for boot programs and libstand.
> Module makefiles still include <bsd.kern.mk>, but Makefiles for boot
> programs have regressed.
> 
> Your x86 box must be out of date.  x86 has gcc-3 and adds -ffreestanding
> unconditionally, so -ffreestanding is added twice for all arches.  I have
> been using the following fix since this bug was committed.

What exactly does this do, besides implying "-fno-builtin"?

The documentation says "and implies main has no special requirements"...

Neither the kernel nor modules have a "main", so the only thing that's
relevent here is the "-fno-builtin", right?

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D0B9888.372EAA3E>