From ef3a3e70930658d499cf200d198e6a86fd183bc0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 20 Aug 2002 14:00:42 +0000 Subject: use the gcc option -ffreestanding: (quote from the gcc man page) "A freestanding environment is one in which the standard library may not exist, and program startup may not necessarily be at "main". The most obvious example is an OS kernel." git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1818 a1c6a512-1295-4272-9138-f99709370657 --- firmware/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware') diff --git a/firmware/Makefile b/firmware/Makefile index 03576d19fd..7d09809713 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -25,12 +25,12 @@ TARGET = -DARCHOS_PLAYER=1 # store output files in this directory: OBJDIR = . -CFLAGS = -W -Wall -O -m1 -nostdlib -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) +CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) ifdef DEBUG CFLAGS += -g -DDEBUG else -CFLAGS += -fomit-frame-pointer -fschedule-insns +CFLAGS += -fomit-frame-pointer -fschedule-insns endif SRC := $(wildcard drivers/*.c common/*.c *.c) -- cgit v1.2.3