summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/bfin/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-26 08:57:06 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-26 08:57:06 +0000
commit4485e5f349663254f17fa2bb435c3ff8109341ac (patch)
treedb53de2598773996f74a914bfb72237d020f255b /libc/sysdeps/linux/bfin/Makefile
parentb329886f6e4f55376e2a126fc371b2e5a7be1239 (diff)
Peter S. Mazinger: use ASFLAGS when compiling asm files
Diffstat (limited to 'libc/sysdeps/linux/bfin/Makefile')
-rw-r--r--libc/sysdeps/linux/bfin/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/bfin/Makefile b/libc/sysdeps/linux/bfin/Makefile
index 23a88f43d..b48131a4c 100644
--- a/libc/sysdeps/linux/bfin/Makefile
+++ b/libc/sysdeps/linux/bfin/Makefile
@@ -18,7 +18,6 @@
TOPDIR=../../../../
include $(TOPDIR)Rules.mak
-ASFLAGS=$(CFLAGS)
CRT0_SRC = crt0.S
CRT0_OBJ = crt0.o
@@ -43,11 +42,11 @@ ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS)
cp $(CRT0_OBJ) $(TOPDIR)lib/
$(CRT0_OBJ): $(CRT0_SRC)
- $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
+ $(CC) $(ASFLAGS) -DL_$* $< -c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(SOBJS): %.o : %.S
- $(CC) $(CFLAGS) -c $< -o $@
+ $(CC) $(ASFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(COBJS): %.o : %.c
@@ -56,14 +55,14 @@ $(COBJS): %.o : %.c
ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y)
crti.o: crti.S
- $(CC) $(CFLAGS) -c crti.S -o crti.o
+ $(CC) $(ASFLAGS) -c crti.S -o crti.o
$(TOPDIR)lib/crti.o: crti.o
$(INSTALL) -d $(TOPDIR)lib/
cp crti.o $(TOPDIR)lib/
crtn.o: crtn.S
- $(CC) $(CFLAGS) -c crtn.S -o crtn.o
+ $(CC) $(ASFLAGS) -c crtn.S -o crtn.o
$(TOPDIR)lib/crtn.o: crtn.o
$(INSTALL) -d $(TOPDIR)lib/
@@ -83,4 +82,3 @@ clean:
$(RM) *.[oa] *~ core
$(RM) bits/sysnum.h
$(RM) $(TOPDIR)lib/crt0.o
-