Re: WITH_DEBUG messing CFLAGS

2013-11-15 Thread Dimitry Andric
On 15 Nov 2013, at 14:44, Andriy Gapon wrote: > I wonder what is the thinking behind CFLAGS cleansing in the following snippet > from bsd.port.mk: > > .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) > STRIP_CMD= ${TRUE} > DEBUG_FLAGS?= -g > CFLAGS:=${CFLAGS:N-O*:N-fno-strict*} ${DEB

WITH_DEBUG messing CFLAGS

2013-11-15 Thread Andriy Gapon
I wonder what is the thinking behind CFLAGS cleansing in the following snippet from bsd.port.mk: .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) STRIP_CMD= ${TRUE} DEBUG_FLAGS?= -g CFLAGS:=${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} .endif If I want to control optimization level fo