From owner-freebsd-current Sat Jun 15 12:42:54 2002 Delivered-To: freebsd-current@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 3151A37B414; Sat, 15 Jun 2002 12:42:45 -0700 (PDT) Received: from pool0289.cvx22-bradley.dialup.earthlink.net ([209.179.199.34] helo=mindspring.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17JJRV-0003fw-00; Sat, 15 Jun 2002 12:42:38 -0700 Message-ID: <3D0B9888.372EAA3E@mindspring.com> Date: Sat, 15 Jun 2002 12:42:00 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Bruce Evans Cc: Maxime Henrion , current@FreeBSD.ORG Subject: Re: duplicate -ffreestanding in kernel build References: <20020615191003.I747-100000@gamplex.bde.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 , 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