Date: Wed, 29 Jun 2005 15:04:12 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@cs.tu-berlin.de> To: Ulrich Spoerlein <spoerlein@informatik.uni-wuerzburg.de> Cc: current@freebsd.org Subject: Re: bsd.cpu.mk confusion Message-ID: <42C29C4C.2030301@cs.tu-berlin.de> In-Reply-To: <20050629105052.GC1091@galgenberg.net> References: <20050629105052.GC1091@galgenberg.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Ulrich Spoerlein wrote: > [...] > > Here's a minimal Makefile > > CPUTYPE=pentium-m > CC= icc > .include <bsd.prog.mk> > .include <bsd.cpu.mk> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42C29C4C.2030301>