From owner-freebsd-current@FreeBSD.ORG Wed Mar 16 18:15:40 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 875F416A4D5 for ; Wed, 16 Mar 2005 18:15:40 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36E9843D4C for ; Wed, 16 Mar 2005 18:15:40 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 2AF3172DDD; Wed, 16 Mar 2005 10:15:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 285FD72DDB; Wed, 16 Mar 2005 10:15:40 -0800 (PST) Date: Wed, 16 Mar 2005 10:15:40 -0800 (PST) From: Doug White To: Gary Jennejohn In-Reply-To: <200503160930.j2G9USKb026310@peedub.jennejohn.org> Message-ID: <20050316101502.V24083@carver.gumbysoft.com> References: <200503160930.j2G9USKb026310@peedub.jennejohn.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 18:15:40 -0000 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 -Werror -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-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 /usr/src/sys/modules/linux/../../i386/linux/linux_genassym.c > /usr/src/sys/modules/linux/../../i386/linux/linux_genassym.c:1: warning: SSE 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? What do you have CFLAGS and COPTFLAGS set to in make.conf? -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org