committed, libgloss/cris/Makefile.in: Use CFLAGS for .S

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Tue Dec 4 23:59:00 GMT 2007


I didn't look closely because this patch is correct if nothing
else than for consistency, but it's the only obvious
explanation: apparently there was a change Some Time Ago such
that multilibs started passing multilib options in CFLAGS rather
than in CC, which caused crt0.S to be assembled for the base
multilib for cris-axis-elf.  I didn't notice because for current
GCC CRIS variants, the base multilib is compatible with all
multilibs.  That will change.

Committed.

libgloss:
	* cris/Makefile.in (crt0.o): Add CFLAGS when compiling crt0.S.

Index: cris/Makefile.in
===================================================================
RCS file: /cvs/src/src/libgloss/cris/Makefile.in,v
retrieving revision 1.3
diff -p -u -r1.3 Makefile.in
--- cris/Makefile.in	21 Feb 2007 14:08:26 -0000	1.3
+++ cris/Makefile.in	1 Dec 2007 13:02:54 -0000
@@ -182,7 +182,7 @@ crt0.o: lcrt0.o crt0.S
           *) \
            case "$?" in \
             *crt0.S) \
-	     $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -xassembler-with-cpp -c $(srcdir)/crt0.S;; \
+	     $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c -xassembler-with-cpp $(srcdir)/crt0.S;; \
             *) touch $@;; \
             esac; \
 	   st=$$?;; \

brgds, H-P



More information about the Newlib mailing list