From owner-freebsd-ports@FreeBSD.ORG Mon Feb 7 17:35:43 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF1961065696 for ; Mon, 7 Feb 2011 17:35:43 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward14.mail.yandex.net (forward14.mail.yandex.net [95.108.130.92]) by mx1.freebsd.org (Postfix) with ESMTP id 92B7B8FC20 for ; Mon, 7 Feb 2011 17:35:43 +0000 (UTC) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward14.mail.yandex.net (Yandex) with ESMTP id D0A9030D08BF for ; Mon, 7 Feb 2011 20:35:41 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1297100141; bh=oanCGi8L3Lmkj7scxE8/ogwItHaBvVRaQwZc04TF20c=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=f0b5zLdT5Ars+Kxhtw58nYCLvkrGgSYglYtG/Du7InfCmPDfxEyepvqIFuauGrI1+ XI/S4XDyZ56fFBhXt7wAsTO/C281Ca0ZquPL03ytd9Cwex9ToJionHigetAfLhYpA4 zFU+jecbtXfREVhTIXBtJobgqS2TysZ/e7duGqQE= Received: from smeshariki2.local (unknown [213.138.85.225]) by smtp11.mail.yandex.net (Yandex) with ESMTPSA id A3D454CC0096 for ; Mon, 7 Feb 2011 20:35:41 +0300 (MSK) Message-ID: <4D502D22.3000200@yandex.ru> Date: Mon, 07 Feb 2011 20:34:26 +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: FreeBSD Ports Mailing List Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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 17:35:43 -0000 Hello. I'm working on port that doesn't builds with "-O2 -pipe", that passed to Makefile by default (it exits with message about virtual memory is exhausted). I can avoid this by setting CFLAGS="" and CXXFLAGS="" in CONFIGURE_ENV. But portlint is complaining like this: WARN: Makefile: CFLAGS/CXXFLAGS are not needed in CONFIGURE_ENV as they are already added there in bsd.port.mk. FATAL: Makefile: CFLAGS are clobbered in CONFIGURE_ENV. Alter CFLAGS in the Makefile with CFLAGS+=... instead FATAL: Makefile: CXXFLAGS are clobbered in CONFIGURE_ENV. Alter CXXFLAGS in the Makefile with CXXFLAGS+=... instead What is the right way to do the job? PS. If i set -O0 in CONFIGURE_ENV, it's later redefined to "-O2 -pipe". -- Regards, Ruslan