aboutsummaryrefslogtreecommitdiff
path: root/libgloss
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-10-08 16:35:34 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-10-08 16:35:34 +0000
commitb1da4d8277bc0d2cafb13a0d8c3760be7a2b3877 (patch)
treeab6153e26da8a7c1b4fa61047add3ba2172b9f8e /libgloss
parent85191fc5aa295e10e4bfecc8637d9d0ce74fc065 (diff)
downloadnewlib-b1da4d8277bc0d2cafb13a0d8c3760be7a2b3877.zip
newlib-b1da4d8277bc0d2cafb13a0d8c3760be7a2b3877.tar.gz
newlib-b1da4d8277bc0d2cafb13a0d8c3760be7a2b3877.tar.bz2
2009-10-08 Jie Zhang <jie.zhang@analog.com>
* bfin/Makefile.in (basiccrt.o, basiccrts.o): Use -mcpu=bf532-any for the default multilib.
Diffstat (limited to 'libgloss')
-rw-r--r--libgloss/ChangeLog5
-rw-r--r--libgloss/bfin/Makefile.in8
2 files changed, 13 insertions, 0 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index e53e07a..2f9f362 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-08 Jie Zhang <jie.zhang@analog.com>
+
+ * bfin/Makefile.in (basiccrt.o, basiccrts.o): Use
+ -mcpu=bf532-any for the default multilib.
+
2009-09-28 Michael Eager <eager@eagercon.com>
* configure.in: Add microblaze-*-*.
diff --git a/libgloss/bfin/Makefile.in b/libgloss/bfin/Makefile.in
index 91a9b54..3ab3a18 100644
--- a/libgloss/bfin/Makefile.in
+++ b/libgloss/bfin/Makefile.in
@@ -99,10 +99,18 @@ ${SIM_BSP}: ${OBJS} ${SIM_OBJS}
crt0.o: crt0.S
basiccrt.o: basiccrt.S
+ifeq (,$(findstring mcpu=,$(CFLAGS)))
+ $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf532-any -o $@ -c $<
+else
$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -o $@ -c $<
+endif
basiccrts.o: basiccrt.S
+ifeq (,$(findstring mcpu=,$(CFLAGS)))
+ $(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf532-any -o $@ -c $<
+else
$(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -o $@ -c $<
+endif
basiccrt561.o: basiccrt.S
ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))