From owner-freebsd-stable@FreeBSD.ORG Fri Jan 20 02:13:48 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54F2916A41F for ; Fri, 20 Jan 2006 02:13:48 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail06.syd.optusnet.com.au (mail06.syd.optusnet.com.au [211.29.132.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id A467343D45 for ; Fri, 20 Jan 2006 02:13:47 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail06.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k0K2Djho011915 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 20 Jan 2006 13:13:46 +1100 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id k0K2DjHh027780 for ; Fri, 20 Jan 2006 13:13:45 +1100 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id k0K2DjIo027779 for freebsd-stable@freebsd.org; Fri, 20 Jan 2006 13:13:45 +1100 (EST) (envelope-from pjeremy) Date: Fri, 20 Jan 2006 13:13:45 +1100 From: Peter Jeremy To: freebsd-stable@freebsd.org Message-ID: <20060120021345.GG25397@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Subject: CFLAGS vs COPTFLAGS for building kernel modules X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2006 02:13:48 -0000 /usr/share/examples/etc/make.conf v1.265.2.1 states: # To compile just the kernel with special optimizations, you should use # this instead of CFLAGS (which is not applicable to kernel builds anyway). # There is very little to gain by using higher optimization levels, and doing # so can cause problems. # #COPTFLAGS= -O -pipe Unfortunately, it seems that kernel modules are build with CFLAGS rather than COPTFLAGS. This is somewhat embarrassing when CFLAGS includes options that don't work in the kernel but aren't explicitly disabled (eg -msse3). My make-foo isn't up to quickly isolating the problem. -- Peter Jeremy