This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]