Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2010 14:03:04 +0100
From:      Gary Jennejohn <gary.jennejohn@freenet.de>
To:        Alexander Best <alexbestms@wwu.de>
Cc:        Garrett Cooper <yanefbsd@gmail.com>, Pegasus Mc Cleaft <ken@mthelicon.com>, freebsd-current@freebsd.org
Subject:   Re: build failures after stdlib update
Message-ID:  <20100321140304.37618e59@ernst.jennejohn.org>
In-Reply-To: <permail-20100321124352f7e55a9d0000754e-a_best01@message-id.uni-muenster.de>
References:  <201003211232.35497.ken@mthelicon.com> <permail-20100321124352f7e55a9d0000754e-a_best01@message-id.uni-muenster.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 21 Mar 2010 13:43:52 +0100 (CET)
Alexander Best <alexbestms@wwu.de> wrote:

> Pegasus Mc Cleaft schrieb am 2010-03-21:
> > > > it would be nice if people with arch i386 and amd64 could try to
> > > > reproduce this (i believe the other archs don't support
> > > > CPUTYPE=native).
> > > > again the easiest way to trigger this (you don't need to edit
> > > > your
> > > > /etc/make.conf for this) should be running:
> 
> > > > gcc -v -x c -E -mtune=native /dev/null -o /dev/null 2>&1
> 
> 
> >         I didnt think  you could add CPUTYPE=native to the
> >         /etc/make.conf
> 
> >         What I used to do when I was compiling native was to do
> >         something like
> > the following in the /etc/make.conf
> 
> no you can. /usr/share/mk/bsd.cpu.mk doesn't perform any 'native' checks so
> when you set 'CPUTYPE=native' -mtune gets set to native.
> 
> so you can just do:
> 
> CPUTYPE=native
> CFLAGS=-O2 -fno-strict-aliasing -pipe -s
> 
> btw: what's the -s switch doing?
> 

It "silences" make.  See the man page.  It's useful because basically only
errors are emitted.

--
Gary Jennejohn



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