From hsn@netmag.cz  Sun Mar  7 13:25:17 2004
Return-Path: <hsn@netmag.cz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6AC6A16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  7 Mar 2004 13:25:17 -0800 (PST)
Received: from mail.tiscali.cz (stateless1.tiscali.cz [213.235.135.70])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3519243D2D
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  7 Mar 2004 13:25:17 -0800 (PST)
	(envelope-from hsn@netmag.cz)
Received: from asura.bsd (212.11.115.115) by mail.tiscali.cz (6.7.021)
        id 40292FFD005AC7D2 for FreeBSD-gnats-submit@freebsd.org; Sun, 7 Mar 2004 22:25:15 +0100
Received: from hsn@localhost
	by asura.bsd (Exim 4.24_4 FreeBSD) id 1AzgVd-00030R-6d
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 06 Mar 2004 19:26:49 +0100
Message-Id: <E1AzgVd-00030R-6d@asura.bsd>
Date: Sat, 06 Mar 2004 19:26:49 +0100
From: Radim Kolar <hsn@netmag.cz>
Reply-To: Radim Kolar <hsn@netmag.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: makeoptions CONF_CFLAGS are ignored when building modules
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         63897
>Category:       kern
>Synopsis:       makeoptions CONF_CFLAGS are ignored when building modules
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 07 13:30:12 PST 2004
>Closed-Date:    Tue Aug 22 09:12:53 GMT 2006
>Last-Modified:  Tue Aug 22 09:12:53 GMT 2006
>Originator:     Radim Kolar
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD asura.bsd 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #1: Sat Mar 6 17:47:01 CET 2004 root@asura.bsd:/usr/src/sys/i386/compile/UP i386
>Description:
kernel config file allows to specify special building options by
directive makeoptions.

I have in kernel config file:
makeoptions     DEBUG=-g                #Build kernel with gdb(1) debug symbols
makeoptions     CONF_CFLAGS="-O2 -fomit-frame-pointer -fexpensive-optimizations
-march=i686"

I have noticed that when building modules (kernel build is okay)
CONF_CFLAGS are not used. -g option IS used.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: kris 
State-Changed-When: Mon Mar 8 22:58:22 PST 2004 
State-Changed-Why:  
Module builds don't use the kernel configuration file at all.  This is a 
known limitation, which will hopefully be addressed in the future. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63897 

From: Radim Kolar <hsn@netmag.cz>
To: Kris Kennaway <kris@FreeBSD.org>
Cc: hsn@netmag.cz, freebsd-bugs@FreeBSD.org,
	FreeBSD BUG followup <bug-followup@freebsd.org>
Subject: Re: kern/63897: makeoptions CONF_CFLAGS are ignored when building modules
Date: Tue, 22 Aug 2006 10:42:16 +0200

 > Module builds don't use the kernel configuration file at all.  This is a
 > known limitation, which will hopefully be addressed in the future.
 it can be closed, works well on 6.1
State-Changed-From-To: suspended->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Aug 22 09:12:38 UTC 2006 
State-Changed-Why:  
Closed at submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63897 
>Unformatted:
