Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Feb 2011 18:32:23 +0300
From:      Ruslan Mahmatkhanov <cvs-src@yandex.ru>
To:        bf1783@gmail.com
Cc:        freebsd-ports@freebsd.org
Subject:   Re: How to not use OPTIMIZED_FLAGS properly
Message-ID:  <4D516207.1090704@yandex.ru>
In-Reply-To: <AANLkTikf5YmAmvKAAERiifW%2BeEFrxW9o9-2jxyXQxnn%2B@mail.gmail.com>
References:  <AANLkTikgqxBoTmvek0hHmbXtyeWCAKyJCHScGvgZY4x-@mail.gmail.com>	<4D5052A9.9000009@yandex.ru> <AANLkTikf5YmAmvKAAERiifW%2BeEFrxW9o9-2jxyXQxnn%2B@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
07.02.2011 23:52, b. f. пишет:
> On 2/7/11, Ruslan Mahmatkhanov<cvs-src@yandex.ru>  wrote:
> ...
>> Yes. I get it wrong what Konstantin and portlint are said. Sorry.
>> CFLAGS=-O0 out of CONFIGURE_ENV works just fine. Thanks.
>
> Note that CFLAGS=-O0 is (even) more restrictive than CFLAGS+=-O0 --
> the latter just overrides the -On setting for n>  0, while the former
> also overrides all other user flags.  Generally speaking, the latter
> should be preferred, as part of our attempt to honor user-defined
> CFLAGS.

Yes. So i decide to stick with Cyrille suggestion and use
CFLAGS:=	${CFLAGS:N-O*:N-pipe}
CXXFLAGS:=	${CXXFLAGS:N-O*:N-pipe}

to avoid just -O and -pipe while keeping other user defined flags untouched.

> ...
>>> This seems pessimistic, by the way.  Have you tried adding other
>>> compiler flags, like those to control the compiler's memory usage? Or
>>> using another compiler via USE_GCC, or patching the source code?
> ...
>> Yes, i tried different flags that affect gcc memory usage, but w/o any
>> success. I'm actually started from patching source code - removing
>> optimization flags from distribution Makefiles.
>
> That's a start.  But I think that this needs more investigation,
> beginning with the code that causes the base system compiler to become
> a hog.

Yes, but i'm not sure that i skilled enough in things like that, i just 
can say that it doesn't working with optimization flags, and working 
without.

There is updated (and i believe finished) version of port:
http://happy-nation.by.ru/ports/gimp-gmic-plugin.shar.txt

If anybody can test or review - that's would be great. Thanks.

-- 
Regards,
Ruslan



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