[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: removing compile directive
From: |
Paul Smith |
Subject: |
Re: removing compile directive |
Date: |
Tue, 22 Apr 2008 01:48:08 -0400 |
On Mon, 2008-04-21 at 10:43 -0700, Brian Dessent wrote:
> CFLAGS = $(filter-out -D_REMOVE_THIS_,$(CFLAGS))
You can't do this: recursive variables cannot reference themselves.
You'd have to use := and change this to a simply-expanded variable
(which might break other things).
Your best bet, as pointed out by someone else, is to add -O0 (or
whatever) to override the optimizer setting.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.us
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist