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


_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to