From a096d8f517bfa75f366b2a8e17a4b6420bfd1409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sat, 3 Nov 2012 22:41:08 +0000 Subject: [PATCH] fixed -mpcrel cflags for cache.c and bas_printf.c --- BaS_GNU/BaS_GNU/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BaS_GNU/BaS_GNU/Makefile b/BaS_GNU/BaS_GNU/Makefile index dd2202e..ce178ef 100644 --- a/BaS_GNU/BaS_GNU/Makefile +++ b/BaS_GNU/BaS_GNU/Makefile @@ -98,9 +98,9 @@ endif $(OBJDIR)/init_fpga.o: CFLAGS += -mbitfield # compile printf pc-relative so it can be used as well before and after copy of BaS -$(OBJDIR)/printf.o: CFLAGS += -mpcrel +$(OBJDIR)/bas_printf.o: CFLAGS += -mpcrel # the same for flush_and_invalidate_cache() -$(OBJDIR)/cache.c: CFLAGS += -mpcrel +$(OBJDIR)/cache.o: CFLAGS += -mpcrel $(OBJDIR)/%.o:$(SRCDIR)/%.c $(CC) -c $(CFLAGS) $(INCLUDE) $< -o $@