Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2016 10:33:03 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Aleksander Alekseev <mail@eax.me>
Cc:        Michael Gmelin <freebsd@grem.de>, Dimitry Andric <dim@FreeBSD.org>, Gary Jennejohn <gljennjohn@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: Need some help with ports and rebuilding the world
Message-ID:  <alpine.BSF.2.20.1603301025540.17879@wonkity.com>
In-Reply-To: <20160330001208.0634c25c@fujitsu>
References:  <20160327234202.178df9a4@fujitsu> <20160327225612.713eaa2a@bsd64.grem.de> <20160328084735.29eff991@fujitsu> <20160328094742.68bc9046@ernst.home> <20160328170031.023f0adb@fujitsu> <E42D3AE7-A444-4514-BF6A-D286A274B147@FreeBSD.org> <20160329123821.120d8de8@fujitsu> <72586F27-113D-4225-B7AB-A890C9522CD5@FreeBSD.org> <20160329165318.2af443c4@fujitsu> <20160329160201.292052a1@bsd64.grem.de> <20160329172835.6526c345@fujitsu> <alpine.BSF.2.20.1603291315070.35810@wonkity.com> <20160330001208.0634c25c@fujitsu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Mar 2016, Aleksander Alekseev wrote:

>>> CPUTYPE?=native
>>> CFLAGS+=-O2 -pipe
>>> CXXFLAGS+=-O2 -pipe
>
>> These will bite with no provocation, and prevent ports that want to
>> set their own flags from using them.
>
> Frankly as a rule of thumb I prefer binary packages. But how would you
> recommend to change these lines? You see if I use ports I would like
> compiled code to be optimized and preferably for local CPU.

Don't set them at all, just remove those lines from make.conf.  Well, 
let me be more specific.  It is probably safe to set CPUTYPE, although 
choosing native has caused problems for me, where specifically setting a 
type like core-avx2 has been fine.

It is just the CFLAGS and CXXFLAGS that are best not set.  When not set, 
the world and kernel build will use safe defaults, but ports that can 
safely override those flags for better performance can do so.



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