From owner-freebsd-current@FreeBSD.ORG Wed Mar 16 22:46:16 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2C5116A4CE for ; Wed, 16 Mar 2005 22:46:16 +0000 (GMT) Received: from lap.jennejohn.org (Ja9be.j.pppool.de [85.74.169.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id C92EC43D46 for ; Wed, 16 Mar 2005 22:46:15 +0000 (GMT) (envelope-from garyj@jennejohn.org) Received: from jennejohn.org (localhost [127.0.0.1]) by lap.jennejohn.org (8.13.3/8.13.1) with ESMTP id j2GMkCuV003342; Wed, 16 Mar 2005 23:46:13 +0100 (CET) (envelope-from garyj@jennejohn.org) Message-Id: <200503162246.j2GMkCuV003342@lap.jennejohn.org> X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: Doug White In-Reply-To: Message from Doug White <20050316101502.V24083@carver.gumbysoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 16 Mar 2005 23:46:12 +0100 From: Gary Jennejohn cc: freebsd-current@freebsd.org Subject: Re: FFLAGS instead of COPTFLAGS in module builds? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 22:46:16 -0000 Doug White writes: > On Wed, 16 Mar 2005, Gary Jennejohn wrote: > > > Why does the module build use CFLAGS instead of COPTFLAGS? > > > > I noticed it here during the module build: > > > > ===> linux (all) > > cc -c -pipe -O2 -mmmx -m3dnow -msse -mfpmath=sse -fno-strict-aliasing -Werr > or -D_KERNEL -DKLD_MODULE -nostdinc -I- -include /u4/obj/usr/src/sys/amd64_32 > /opt_global.h -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -g > -I/u4/obj/usr/src/sys/amd64_32 -mno-align-long-strings -mpreferred-stack-boun > dary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundan > t-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-a > rith -Winline -Wcast-qual -fformat-extensions -std=c99 /usr/src/sys/modules/l > inux/../../i386/linux/linux_genassym.c > > /usr/src/sys/modules/linux/../../i386/linux/linux_genassym.c:1: warning: SS > E instruction set disabled, using 387 arithmetics > > *** Error code 1 > > > > My CFLAGS was used instead of the COPTFLAGS, as I would have expected. > > After all, modules are part of the kernel. > > How did you start this build? > cd /usr/src; make buildkernel > What do you have CFLAGS and COPTFLAGS set to in make.conf? > CFLAGS is set to -pipe -O2 -mmmx -m3dnow -msse -mfpmath=sse COPTFLAGS is -pipe -O --- Gary Jennejohn / garyj[at]jennejohn.org gj[at]freebsd.org garyj[at]denx.de