From owner-freebsd-current@FreeBSD.ORG Wed Jun 29 13:05:50 2005 Return-Path: X-Original-To: current@freebsd.org 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 8386816A41C for ; Wed, 29 Jun 2005 13:05:50 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from mail.efacilitas.de (efacilitas.de [213.133.110.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ED7243D1D for ; Wed, 29 Jun 2005 13:05:50 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-37-29.dynamic.qsc.de [212.202.37.29]) by mail.efacilitas.de (Postfix) with ESMTP id D0BB312396A; Wed, 29 Jun 2005 15:04:06 +0200 (CEST) Received: from localhost (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id A3F4612B0A4; Wed, 29 Jun 2005 15:04:19 +0200 (CEST) Received: from eurystheus.local ([192.168.1.67]) by localhost (eurystheus.locaL [192.168.1.67]) (amavisd-new, port 10024) with ESMTP id 88627-08; Wed, 29 Jun 2005 15:04:13 +0200 (CEST) Received: from [192.168.1.67] (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id 49FC312B09E; Wed, 29 Jun 2005 15:04:13 +0200 (CEST) Message-ID: <42C29C4C.2030301@cs.tu-berlin.de> Date: Wed, 29 Jun 2005 15:04:12 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050517 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ulrich Spoerlein References: <20050629105052.GC1091@galgenberg.net> In-Reply-To: <20050629105052.GC1091@galgenberg.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at example.com Cc: current@freebsd.org Subject: Re: bsd.cpu.mk confusion X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 29 Jun 2005 13:05:50 -0000 Ulrich Spoerlein wrote: > [...] > > Here's a minimal Makefile > > CPUTYPE=pentium-m > CC= icc > .include > .include > > Then > % make -V CFLAGS > -O2 -fno-strict-aliasing -pipe -march=pentium-m -tpp6 -xiMK > > Only problem is, icc doesn't recognize -march. I can't figure out, why I > get this assignment. Running make with debugging output couldn't > enlight me either. > > So, what am I doing wrong? You have overlooked that sys.mk will be processed "before any other file, including makefile and Makefile" (make(1)). /usr/share/mk/sys.mk includes already bsd.cpu.mk once at a time where CC has not been set to 'icc'. Therefore ${_CPUCFLAGS} will be added to CFLAGS in bsd.cpu.mk. Afterwards you include bsd.cpu.mk twice. Regards Björn