From owner-freebsd-ports@FreeBSD.ORG Mon Feb 7 20:15:50 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17D081065673 for ; Mon, 7 Feb 2011 20:15:50 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward12.mail.yandex.net (forward12.mail.yandex.net [95.108.130.94]) by mx1.freebsd.org (Postfix) with ESMTP id AEAC08FC1A for ; Mon, 7 Feb 2011 20:15:49 +0000 (UTC) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward12.mail.yandex.net (Yandex) with ESMTP id 9B2B96E6887D; Mon, 7 Feb 2011 23:15:47 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1297109747; bh=VjDe+xqWqgEoz9wEkYKgtvBgfuYrWUr2+68dByAuQEI=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=hcDnbyCVCsDYU5FKoDLQf4gpl5fY4mHXg0Ia/NHso+lemX5h5PZJSQmJcsDmBuZeO +JMoEFmd5ZTTSqbRLIBh0F8479n0OjDmgHcxdg3a1Km4RSvo7fsWopxk+21q6hpEXN yxcog1v3S5RjrpP148TxzsN19FsgC39YrykRNSts= Received: from smeshariki2.local (unknown [178.76.212.172]) by smtp11.mail.yandex.net (Yandex) with ESMTPSA id 5C8F34CC009D; Mon, 7 Feb 2011 23:15:47 +0300 (MSK) Message-ID: <4D5052A9.9000009@yandex.ru> Date: Mon, 07 Feb 2011 23:14:33 +0300 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110106 Thunderbird/3.1.7 MIME-Version: 1.0 To: bf1783@gmail.com References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-ports@FreeBSD.org Subject: Re: How to not use OPTIMIZED_FLAGS properly X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2011 20:15:50 -0000 07.02.2011 22:28, b. f. пишет: >>> >>> Have you tried CFLAGS+=-O0 as portlint suggested? >> >> As i said before i tried that. If i'm using +=-O0 then it changes to -O2 >> -pipe. If i'm using =-O0, then all builds fine, but this make portlint >> complaining. > > CFLAGS and CXXFLAGS are already passed by default in do-configure, as > portlint states. Why aren't you simply defining them, by themselves > and not as a part of CONFIGURE_ENV, in the port Makefile?: Yes. I get it wrong what Konstantin and portlint are said. Sorry. CFLAGS=-O0 out of CONFIGURE_ENV works just fine. Thanks. > > CFLAGS+=-O0 > > 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? > > b. 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. -- Regards, Ruslan