Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Sep 2012 16:58:59 +0200
From:      Norbert Aschendorff <norbert.aschendorff@yahoo.de>
To:        freebsd-stable@freebsd.org
Subject:   Re: Building FreeBSD-STABLE
Message-ID:  <50670CB3.7050808@yahoo.de>
In-Reply-To: <50670BE1.2000506@andric.com>
References:  <5066CD86.1020900@yahoo.de> <50670BE1.2000506@andric.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





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