Date: Tue, 08 Feb 2011 00:39:41 +0300 From: Anonymous <swell.k@gmail.com> To: Cyrille Lefevre <cyrille.lefevre-lists@laposte.net> Cc: freebsd-ports@freebsd.org Subject: Re: How to not use OPTIMIZED_FLAGS properly Message-ID: <86sjvzzfqa.fsf@gmail.com> In-Reply-To: <4D5048B5.4060000@laposte.net> (Cyrille Lefevre's message of "Mon, 07 Feb 2011 20:32:05 %2B0100") References: <4D502D22.3000200@yandex.ru> <4D5048B5.4060000@laposte.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Cyrille Lefevre <cyrille.lefevre-lists@laposte.net> writes: > Le 07/02/2011 18:34, Ruslan Mahmatkhanov a =C3=A9crit : >> >> 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=3D"" and CXXFLAGS=3D"" in >> CONFIGURE_ENV. But portlint is complaining like this: >> >> What is the right way to do the job? > > how about CFLAGS :=3D ${CFLAGS:N-O*:N-pipe} -O One can also define WITH_DEBUG in the port's makefile until -On is fixed. # from Mk/bsd.port.mk .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) STRIP=3D #none STRIP_CMD=3D ${TRUE} DEBUG_FLAGS?=3D -g CFLAGS:=3D ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86sjvzzfqa.fsf>