summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/win32.mak4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/win32.mak b/apps/win32.mak
index 1f97e01915..d0eb232723 100644
--- a/apps/win32.mak
+++ b/apps/win32.mak
@@ -57,7 +57,7 @@ ifdef PROPFONTS
57 DEFINES += -DLCD_PROPFONTS 57 DEFINES += -DLCD_PROPFONTS
58endif 58endif
59 59
60CFLAGS = -O -W -Wall -m1 -nostdlib -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) 60CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(DEFINES)
61AFLAGS += -small -relax 61AFLAGS += -small -relax
62 62
63ifdef DEBUG 63ifdef DEBUG
@@ -88,7 +88,7 @@ $(OBJDIR)/librockbox.a:
88 make -C $(FIRMWARE) -f win32.mak TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR) 88 make -C $(FIRMWARE) -f win32.mak TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR)
89 89
90$(OBJDIR)/archos.elf : $(OBJS) $(LDS) $(OBJDIR)/librockbox.a 90$(OBJDIR)/archos.elf : $(OBJS) $(LDS) $(OBJDIR)/librockbox.a
91 $(CC) -Os -nostdlib -o $(OBJDIR)/archos.elf $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LDS) -Wl,-Map,$(OBJDIR)/archos.map 91 $(CC) -Os -nostdlib -o $(OBJDIR)/archos.elf $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -lc -L$(FIRMWARE) -T$(LDS) -Wl,-Map,$(OBJDIR)/archos.map
92 92
93$(OBJDIR)/archos.bin : $(OBJDIR)/archos.elf 93$(OBJDIR)/archos.bin : $(OBJDIR)/archos.elf
94 $(OC) -O binary $(OBJDIR)/archos.elf $(OBJDIR)/archos.bin 94 $(OC) -O binary $(OBJDIR)/archos.elf $(OBJDIR)/archos.bin