[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file-specific optimization options?
From: |
Adam Fedor |
Subject: |
Re: file-specific optimization options? |
Date: |
Tue, 06 Nov 2001 08:33:10 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.4) Gecko/20010915 |
Nicola Pero wrote:
(ii): gnustep-make does not support file-specific CC options ... hmmm ...
Actually, gnustep-base has a similar hack in Source/Makefile.postamble,
just set up a specific rule for compiling that file:
#
# Files where optimisation breaks the code!
# These have to filter the optimisation flag out.
#
$(GNUSTEP_OBJ_DIR)/mframe.o : mframe.m
$(CC) -c $(filter-out -O%, $(ALL_CPPFLAGS) $(ALL_OBJCFLAGS)) -o
$@ $<
$(GNUSTEP_OBJ_DIR)/NSConnection.o : NSConnection.m
$(CC) -c $(filter-out -O%, $(ALL_CPPFLAGS) $(ALL_OBJCFLAGS)) -o
$@ $<
$(GNUSTEP_OBJ_DIR)/NSInvocation.o : NSInvocation.m
$(CC) -c $(filter-out -O%, $(ALL_CPPFLAGS) $(ALL_OBJCFLAGS)) -o
$@ $<
--
Adam Fedor, Digital Optics | Fudd's law of opposition: Push
fedor@doc.com http://www.doc.com | something hard enough, and it
fedor@gnu.org http://www.gnustep.org | will fall over.