Building FreeBSD-STABLE
Norbert Aschendorff
norbert.aschendorff at yahoo.de
Sat Sep 29 14:59:07 UTC 2012
On 09/29/2012 04:55 PM, Dimitry Andric wrote:
> On 2012-09-29 16:16, Norbert Aschendorff wrote:
> ...
>> src.conf does not exist here, and make.conf contains this:
>>
>> # added by use.perl 2012-08-23 17:45:18
>> PERL_VERSION=5.14.2
>>
>> CFLAGS=-pipe
>> #CC=clang
>> #CC=gcc
>> CXXFLAGS=-pipe
>> #CXX=clang++
>> #CXX=g++
>
> There is your problem. Never assign to CFLAGS or CXXFLAGS using the =
> operator, always add to them, using the += operator instead.
Oh, ok. I thought that the flags in CFLAGS or CXXFLAGS are added to the
compiler calls. Thank you for clarifying that.
> Also, you don't need to duplicate flags in CXXFLAGS, which are already
> in CFLAGS. You should only add C++ specific flags to CXXFLAGS.
>
> Last but not least, -pipe is completely unnecessary, it is already the
> default.
Nice to know :) Thanks.
--Norbert
More information about the freebsd-stable
mailing list