Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Mar 2005 10:15:40 -0800 (PST)
From:      Doug White <dwhite@gumbysoft.com>
To:        Gary Jennejohn <garyj@jennejohn.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: FFLAGS instead of COPTFLAGS in module builds?
Message-ID:  <20050316101502.V24083@carver.gumbysoft.com>
In-Reply-To: <200503160930.j2G9USKb026310@peedub.jennejohn.org>
References:  <200503160930.j2G9USKb026310@peedub.jennejohn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050316101502.V24083>