This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Fix lossage with multi-word CC
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- To: frysk at sources dot redhat dot com
- Date: Fri, 18 Aug 2006 03:55:02 -0300
- Subject: Fix lossage with multi-word CC
I have CC set to 'ccache gcc -m{64,32}' by default, and Frysk's
common/ build machinery can't tolerate that.
This simple change is required to all Makefile.rules containing these
rules which, if I understand correctly, is the same CVS directory that
gets magically checked out onto the right place for multiple
sub-projects, right?
It will break CC containing single quotes, but if you have that,
you're probably already toast anyway.
Ok to install?
for common/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* Makefile.rules (.shjava.java, .shenum.java): Support
multi-word CC.
Index: common/Makefile.rules
===================================================================
RCS file: /cvs/frysk/frysk-common/Makefile.rules,v
retrieving revision 1.130
diff -u -p -r1.130 Makefile.rules
--- common/Makefile.rules 16 Aug 2006 10:31:07 -0000 1.130
+++ common/Makefile.rules 17 Aug 2006 08:42:01 -0000
@@ -181,7 +181,7 @@ SUFFIXES += .mkjava
SUFFIXES += .shjava
.shjava.java:
rm -f $*.tmp
- export CC=$(CC) ; \
+ CC='$(CC)'; export CC ; \
$(SHELL) $< | $(SHELL) $(MKJAVA) > $*.tmp $@
chmod a-w $*.tmp
mv -f $*.tmp $@
@@ -198,7 +198,7 @@ SUFFIXES += .mkenum
SUFFIXES += .shenum
.shenum.java:
rm -f $*.tmp
- export CC=$(CC) ; \
+ CC='$(CC)'; export CC ; \
$(SHELL) $< | $(SHELL) $(MKENUM) > $*.tmp $@
chmod a-w $*.tmp
mv -f $*.tmp $@
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
Secretary for FSF Latin America http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}